Ansible playbooks are amazing, as you learned yesterday. What if you deploy a simple web app using ansible, sounds like a good project, right?
-
create 3 EC2 instances . make sure all three are created with same key pair
-
Install Ansible in host server
-
copy the private key from local to Host server (Ansible_host) at (/home/ubuntu/.ssh)
-
access the inventory file using sudo vim /etc/ansible/hosts
-
Create a playbook to install Nginx
-
deploy a sample webpage using the ansible playbook
Read this Blog by Sandeep Singh to clear all your doubts
Let me or anyone in the community know if you face any challenges
happy Learning :)