hi all,
been testing out this fun module:
http://docs.ansible.com/ec2_vpc_module.html
curious if anyone has figured out a way to have "idempotency" when creating
a VPC using this module .. more specifically, our subnets and route tables
do change, so i would prefer that after i update the play -- it would
update the existing VPC and not create a new one .. below is my example
code:
local_action:
module: ec2_vpc
aws_access_key: yoyoma
aws_secret_key: mamayo
state: present
cidr_block: 10.169.0.0/16
region: us-east-1
subnets:
- cidr: 10.169.1.0/24
az: us-east-1b
- cidr: 10.169.2.0/24
az: us-east-1b
- cidr: 10.169.3.0/24
az: us-east-1b
internet_gateway: True
route_tables:
- subnets:
- 10.169.1.0/24
routes:
- dest: 0.0.0.0/0
gw: igw
register: vpc
thanks !!
greg
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/9238e36a-e4e6-48b6-b234-aefb27517122%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.