So it turns out that you have to specify the lookup attribute when trying to delete the route table by route_table_id. Once I add "lookup: id" to the invocation, the deletion works. This isn't called out in the module documentation, so I'll suggest that change to the module docs.
Thanks! --rc On Tuesday, December 13, 2016 at 5:43:52 PM UTC-5, Igor Cicimov wrote: > > Just to clarify, was the routing table in use by a subnet(s) at that > moment? I think AWS will not allow you to remove a resource that is > referenced by another one. > > On Thursday, December 8, 2016 at 7:43:57 AM UTC+11, [email protected] > wrote: >> >> Using version: >> >> ansible 2.2.1.0 (stable-2.2 acad2ba246) last updated 2016/12/07 11:28:43 >> (GMT -400) >> lib/ansible/modules/core: (detached HEAD 8139278530) last updated >> 2016/12/07 11:28:55 (GMT -400) >> lib/ansible/modules/extras: (detached HEAD f5f1fc934a) last updated >> 2016/12/07 11:28:56 (GMT -400) >> config file = /etc/ansible/ansible.cfg >> configured module search path = Default w/o overrides >> >> I'm able to build route tables just fine, but trying to utilize the >> "state:absent" attribute in the module does not result in removing route >> tables. >> >> I ended up doing a shell task and calling awscli to handle the removal. I >> don't see any specific issues on the extras Github site about this >> behavior, so I thought I'd inquire here... >> >> Thanks, >> >> --rc >> > -- 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/d76a9699-2699-4f56-a3e3-36fff2502752%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
