Issue creating AWS VPC with Ansible

0 votes

I am getting this error -

 ~]$ ansible-playbook -i ./hosts create-vpc.yml
ERROR! Syntax Error while loading YAML.
  did not find expected key
Mar 26, 2018 in Ansible by Atul
• 10,240 points
134 views

2 answers to this question.

0 votes

Check the indentation of your YAML file

Or

- name: To set up internet gateway hosts: local tasks: - name: creating vpc ec2_vpc: region: us-east-1 state: present cidr_block: 20.0.0.0/16 resource_tags: { "Name":"Test" } register: vpc

answered Mar 26, 2018 by DragonLord999
• 8,380 points
0 votes
You can use the details given in the following link:-

https://docs.ansible.com/ansible/2.5/modules/ec2_vpc_module.html
answered Aug 16, 2018 by Priyaj
• 56,160 points

Related Questions In Ansible

0 votes
1 answer

Ansible with AWS Parameter store

Hey @Dipti, have a look at the ...READ MORE

answered Mar 24 in Ansible by Rhea
62 views
0 votes
1 answer
0 votes
1 answer

How to use Ansible git module pull a branch with local changes?

You cannot achieve it using the git ...READ MORE

answered Jul 9, 2018 in Ansible by Atul
• 10,240 points
1,086 views
0 votes
2 answers

How do you stop Ansible from creating .retry files in the home directory?

[defaults] ... retry_files_enabled = True # Create them ...READ MORE

answered Apr 5 in Ansible by anonymous
595 views
0 votes
1 answer

Ansible iterate over hash with condition

Your when statement is wrong. you either split ...READ MORE

answered Jul 23, 2018 in Ansible by Kalgi
• 37,430 points
152 views
0 votes
1 answer

Testing server response with timeout using ansible

Got it working using wait_for and until ...READ MORE

answered Aug 7, 2018 in Ansible by Atul
• 10,240 points
218 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 37,430 points
49 views
0 votes
1 answer