How to run an Ansible playbook on a remote EC2 instance on AWS
These are the files required to run a simple Apache2 web server on an AWS EC2 instance. This assumes the EC2 instance is already created and that you have a .pem key file needed to log into the instance.
For this to work, make sure to run the setup.sh bash script in the same directory as playbook.yml, hosts, and ansible.cfg