We have written Ansible YAML file to create an EC2 instance
Before Running the YAML file, need to be check syntax
ansible-playbook ec2_instance.yml --syntax-check
if you are not getting any error, we are good to run the ansible-playbook
After running, We are getting below error. It says, boto needs to be installed.
So we need to run the below command to install boto
once installed pip,then run the below command to install boto & boto 3 version
after everything installed, again we're facing issue. It says #### "Handlers were checked" which means
we need to provide Credentials details. Either you can add into YAML file or run like below
once everything added, run the below command
ansible-playbook ec2_instance.yml
Now we have successfully launched