Creating VPC using ec2_vpc module. Have a public net so adding a routing table:
“route_tables”: [
{
“subnets”: [“10.0.0.0/24”],
“routes”: [ { “dest”: “0.0.0.0/0”, “gw”: “igw” } ],
“resource_tags”: { “Name”: “way_out” }
}
],
The route is created but it does not have any tags (it has empty Name tag which is always created by Amazon). There are no error messages. Similar resource_tags work fine for the vpc and subnets. Also tried to add another tag (in additon to Name) but that one didn’t show up in the created route table either.
Going by the docs at http://docs.ansible.com/ec2_vpc_module.html which say: “A dictionary array of route tables to add of the form: { subnets: [172.22.2.0/24, 172.22.3.0/24,], routes: [{ dest: 0.0.0.0/0, gw: igw},], resource_tags: … }.”
Any ideas what’s going on?
Thanks!
erik