So you're saying that after running that the IGW is not associated with 
your subnet(s)?
Also, can you confirm that the routing tables have the correct subnets 
associations?

On Tuesday, 24 February 2015 21:37:04 UTC+1, Pablo Escobar wrote:
>
> Hi,
>
> I have been doing some tests to deploy a ec2 vpc with ansible but I cannot 
> manage to configure the default gw so the machines inside the vpc have no 
> internet access.
>
> After doing some debugging in my playbook I just copied&paste the example 
> from the documentation in http://docs.ansible.com/ec2_vpc_module.html to 
> see if it works but still I don't get the default gw in the vpc
>
> This is the example I tried from documentation which is not working for 
> me.  (just changing availability zone and region)  I am using ansible 1.8.2 
> in ubuntu14.04 with python 2.7.6
>
> any clue about how to fix this?
>
>
> # Full creation example with subnets and optional availability zones.
> # The absence or presence of subnets deletes or creates them respectively.
>       ec2_vpc:
>         state: present
>         cidr_block: 172.22.0.0/16
>         resource_tags: { "Environment":"Development" }
>         subnets:
>           - cidr: 172.22.1.0/24
>             az: us-west-2c
>             resource_tags: { "Environment":"Dev", "Tier" : "Web" }
>           - cidr: 172.22.2.0/24
>             az: us-west-2b
>             resource_tags: { "Environment":"Dev", "Tier" : "App" }
>           - cidr: 172.22.3.0/24
>             az: us-west-2a
>             resource_tags: { "Environment":"Dev", "Tier" : "DB" }
>         internet_gateway: True
>         route_tables:
>           - subnets:
>               - 172.22.2.0/24
>               - 172.22.3.0/24
>             routes:
>               - dest: 0.0.0.0/0
>                 gw: igw
>           - subnets:
>               - 172.22.1.0/24
>             routes:
>               - dest: 0.0.0.0/0
>                 gw: igw
>         region: us-west-2
>       register: vpc
>
>
> thanks in advance,
>
> Pablo
>

-- 
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/df05af4c-bdb0-4d54-9861-efdb14b237e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to