Hello,
I have no idea why this simple test code does not delete a route table.
Hopefully, someone with fresh eyes can spot the problem.
Playbook:
---
- name: trythis
hosts: localhost
connection: local
gather_facts: True
tasks:
- ec2_vpc_route_table_facts:
region: "{{ aws.region }}"
filters:
route-table-id: rtb-8bb593ef
register: route_table_facts
- debug: var=route_table_facts
- ec2_vpc_route_table:
region: "{{ aws.region }}"
vpc_id: vpc-8b1277ef
route_table_id: rtb-8bb593ef
state: absent
register: route_table
- debug: var=route_table
Here's the first debug:
ok: [localhost] => {
"route_table_facts": {
"changed": false,
"route_tables": [
{
"associations": [],
"id": "rtb-8bb593ef",
"routes": [
{
"destination_cidr_block": "10.0.0.0/22",
"gateway_id": "local",
"instance_id": null,
"interface_id": null,
"origin": "CreateRouteTable",
"state": "active",
"vpc_peering_connection_id": null
}
],
"tags": {},
"vpc_id": "vpc-8b1277ef"
}
]
}
}
Here's the second debug:
TASK [debug]
***************************************************************************************
ok: [localhost] => {
"route_table": {
"changed": false
}
}
Any assistance would be appreciated!
Jack
--
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/CA%2B8kus-G3PM7crx0kXZ1p9OtORVwaC4r0UAcbzfGQjHRSqgq-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.