In Ansible a static inventory file is a plain text file that contains a list of managed hosts declared under a host group using either hostnames or IP addresses. So in this blog i will be deploying web server using Ansible dynamic inventory file on AWS. If you want to deploy it using static inventory file, you can refer to my previous blog .
Step Download ansible dynamic inventory in your inventory directory and make it executable.
If you don’t want to create your own, you may skip to step 8 and get roles directory from my github repo