Ansible_create_ec2_instance_and_deploy_wordpress_using_docker
create ec2 instance using Ansible and deploy wordpress on it using docker
steps
- install ansible using pip and globally [] pip3 install ansible [] sudo apt install ansible [*] ansible --version
- create an IAM USER with admin access and add his credentials locally
- get vpc_id of the default subnet and any subnet from the default vpc and add it under roles/create-ec2-instances/vars instead of the 2 vars here
- ansible-playbook install-docker-mariadb-wordpress.yml -i inventory --private-key keys/my_keypair.pem