Hi there,
Can anyone please let me know what should be the correct syntax
for defining vpc subnet id ? This is my playbook:
---
- name: A play to launch ec2 instance
hosts: localhost
connection: local
gather_facts: false
vars:
- proto: tcp
ports:
- 22
cidr_ip: xxx.xx.xx.xx/16
rule_desc: allow all connection on port 22
tasks:
- name: Task to launch ec2 instance with default values
ec2:
key_name: xxxxxxx_key
instance_type: t2.micro
image: ami-xxxxxxxxx
wait: yes
count: 1
region: us-east-1
aws_access_key: xxxxxxxxxxxxxxx
aws_secret_key: xxxxxxxxxxxxxxxxxxxxxx
* vpc_subnet_id: vpc-xxxx ( copy pasted) *
assign_public_ip: yes
- name: Verbosity
debug:
msg: "ec2 output ..."
verbosity: 4
Thanks.
Sanjay Chakraborty
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAHOFgkTrET9V5nZRuHNi-VpidBpsZTvsNSimF-P9MrAqjkkmGQ%40mail.gmail.com.