fatal localhost FAILED changed false msg Either region or ec2 url must be specified

0 votes

Hi Guys,

I am trying to launch an EC2 instance using Ansible-Playbook. But when I try to run my playbook, it is showing me the below error.

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Either region or ec2_url must be specified"}

How to avoid this error?

Aug 12, 2020 in Ansible by akhtar
• 38,210 points

1 answer to this question.

0 votes


You got this error because you did not assign region names in your playbook. By default, Ansible will not pick any region from AWS. So your playbook doesn't know in which region to launch the EC2 instance. To avoid this error you have to tell your region name in your playbook.

answered Aug 12, 2020 by MD
• 95,300 points

Related Questions In Ansible

+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer

fatal: [localhost]: FAILED! => {"changed": false, "msg": "boto required for this module"}

Hi@akhtar, As ansible use the python library in ...READ MORE

answered Aug 12, 2020 in Ansible by MD
• 95,300 points