· 7 years ago · May 14, 2018, 07:58 PM
1- name: Create Public Subnet 1 in VPC
2 ec2_vpc_subnet:
3 vpc_id: "{{ vpc_output.vpc.id }}"
4 cidr: "{{ vpc.public_subnet1_cidr }}"
5 region: "{{ aws.region }}"
6 az: "{{ aws.az1 }}"
7 aws_access_key: "{{ access_key }}"
8 aws_secret_key: "{{ secret_key }}"
9 state: present
10 wait: yes
11 tags: "{{ tags }}"
12 Name: blah
13 register: pub1_output
14
15
16ERROR! Syntax Error while loading YAML.
17 did not find expected key
18
19The error appears to have been in '/media/shared/projects/preservible/epcp/roles/subnet/tasks/main.yml': line 13, column 7, but may
20be elsewhere in the file depending on the exact syntax problem.
21
22The offending line appears to be:
23
24 tags: "{{ tags }}"
25 Name: blah
26 ^ here