Discussion:
[ansible-project] ec2_vpc route_tables tags not created
Erik Steffl
2015-07-16 03:17:37 UTC
Permalink
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
--
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+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a4805f9e-f695-4b5e-9cd4-0d6ddde26a00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Erik Steffl
2015-07-17 21:25:10 UTC
Permalink
checked the code, the latest released version of Ansible 1.9.2 does not
have code to create tags for route_tables. The devel branch (guess that's
2.0) does have code to create tags for rout_tables.

BTW the docs are a bit confusing in this regard, they don't state the
version so I assumed that the docs apply to the released version. Sometime
they explicitly mention which version something was added in but not for
the resource_tags in route_tables.

erik
Post by Erik Steffl
Creating VPC using ec2_vpc module. Have a public net so adding a routing
"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
--
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+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/640e82c1-bede-44fd-9150-272b4f7560ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...