"curious if anyone has figured out a way to have "idempotency" when
creating a VPC using this module "

Idempotency is one of my least favorite words, because it's used in so many
different ways by different people to mean many different things :)

Just to be sure, what is the above code block doing that you don't like?

Thanks!





On Thu, Jun 5, 2014 at 3:39 PM, Gregory Spranger <gkspran...@gmail.com>
wrote:

> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9238e36a-e4e6-48b6-b234-aefb27517122%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9238e36a-e4e6-48b6-b234-aefb27517122%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzTGWJswe8TJ-M2bXoAcZDZRw99v5wTJxFpJLSszcqifA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to