Deploy Web Server on AWS through ANSIBLE!

🔅Provision EC2 instance through ansible.
🔅Retrieve the IP Address of instance using dynamic inventory concept.
🔅Configure the web server through ansible!
🔅Create role for webserver to customize the Instance and deploy the webpage to root directory.
LET’S COMPLETE THIS TASK ONE BY ONE

ansible.cfg

Setting roles_path is very important.
ansible-galaxy init webserver

mainplaybook.yml

webserver

AWS CLOUD

LET’S RUN THE PLAYBOOK

OUTPUT
