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,220 points
127 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,360 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,140 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
45 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,220 points
884 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
511 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
• 36,340 points
133 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,220 points
174 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
• 36,340 points
37 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.