When running ec2_vpc_route_table module tasks in check mode (–check), the output says “changed”, but it is not clear what will be altered when check mode is off.
How can I tell what will be changed for that task?
Command output for a table with small number of routes:
`
TASK [create route table] **********************************************************************************
task path: /Users/tom/repos/aws-codecommit/ansible-tower/util/ec2_vpc_route_table_output.yml:20
Thursday 29 June 2017 17:10:05 +0100 (0:00:08.642) 0:00:12.114 *********
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_vpc_route_table.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: tom
<127.0.0.1> EXEC /bin/sh -c ‘/usr/local/opt/python/bin/python2.7 && sleep 0’
changed: [localhost] => {
“changed”: true,
“invocation”: {
“module_args”: {
“aws_access_key”: null,
“aws_secret_key”: null,
“ec2_url”: null,
“lookup”: “tag”,
“profile”: null,
“propagating_vgw_ids”: ,
“purge_routes”: true,
“purge_subnets”: true,
“region”: “eu-central-1”,
“route_table_id”: “rtb-d283b7ba”,
“routes”: [
{
“destination_cidr_block”: “10.195.1.0/24”,
“gateway_id”: “None”,
“instance_id”: “i-61271fdd”,
“interface_id”: “eni-2db23c52”,
“vpc_peering_connection_id”: “None”
},
{
“destination_cidr_block”: “10.195.2.0/24”,
“gateway_id”: “None”,
“instance_id”: “i-090a61db57068090c”,
“interface_id”: “eni-0ce2b460”,
“vpc_peering_connection_id”: “None”
},
{
“destination_cidr_block”: “10.64.0.0/22”,
“gateway_id”: “None”,
“instance_id”: “i-023d66bd07e4b89d4”,
“interface_id”: “eni-2e414243”,
“vpc_peering_connection_id”: “None”
},
{
“destination_cidr_block”: “10.192.16.0/20”,
“gateway_id”: “None”,
“instance_id”: “i-030a7771ba6ef2175”,
“interface_id”: “eni-23f0f04e”,
“vpc_peering_connection_id”: “None”
},
{
“destination_cidr_block”: “10.192.192.0/20”,
“gateway_id”: “None”,
“instance_id”: “i-61271fdd”,
“interface_id”: “eni-2db23c52”,
“vpc_peering_connection_id”: “None”
},
{
“destination_cidr_block”: “10.194.128.0/19”,
“gateway_id”: “local”,
“instance_id”: “None”,
“interface_id”: “None”,
“vpc_peering_connection_id”: “None”
},
{
“destination_cidr_block”: “10.194.160.0/19”,
“gateway_id”: “None”,
“instance_id”: “i-090a61db57068090c”,
“interface_id”: “eni-0ce2b460”,
“vpc_peering_connection_id”: “None”
},
{
“destination_cidr_block”: “0.0.0.0/0”,
“gateway_id”: “nat-0702f860217fc02f1”,
“instance_id”: “None”,
“interface_id”: “None”,
“vpc_peering_connection_id”: “None”
}
],
“security_token”: null,
“state”: “present”,
“subnets”: [
“subnet-73151639”,
“subnet-321b1878”,
“subnet-911b18db”,
“subnet-ad181be7”,
“subnet-0514174f”
],
“tags”: {
“Name”: “private_c”
},
“validate_certs”: true,
“vpc_id”: “vpc-12345f6a”
}
},
“route_table”: {
“id”: “rtb-d283b7ba”,
“routes”: [
{
“destination_cidr_block”: “10.195.1.0/24”,
“gateway_id”: null,
“instance_id”: “i-61271fdd”,
“interface_id”: “eni-2db23c52”,
“origin”: “CreateRoute”,
“state”: “active”,
“vpc_peering_connection_id”: null
},
{
“destination_cidr_block”: “10.195.2.0/24”,
“gateway_id”: null,
“instance_id”: “i-090a61db57068090c”,
“interface_id”: “eni-0ce2b460”,
“origin”: “CreateRoute”,
“state”: “active”,
“vpc_peering_connection_id”: null
},
{
“destination_cidr_block”: “10.64.0.0/22”,
“gateway_id”: null,
“instance_id”: “i-023d66bd07e4b89d4”,
“interface_id”: “eni-2e414243”,
“origin”: “CreateRoute”,
“state”: “active”,
“vpc_peering_connection_id”: null
},
{
“destination_cidr_block”: “10.192.16.0/20”,
“gateway_id”: null,
“instance_id”: “i-030a7771ba6ef2175”,
“interface_id”: “eni-23f0f04e”,
“origin”: “CreateRoute”,
“state”: “active”,
“vpc_peering_connection_id”: null
},
{
“destination_cidr_block”: “10.192.192.0/20”,
“gateway_id”: null,
“instance_id”: “i-61271fdd”,
“interface_id”: “eni-2db23c52”,
“origin”: “CreateRoute”,
“state”: “active”,
“vpc_peering_connection_id”: null
},
{
“destination_cidr_block”: “10.194.128.0/19”,
“gateway_id”: “local”,
“instance_id”: null,
“interface_id”: null,
“origin”: “CreateRouteTable”,
“state”: “active”,
“vpc_peering_connection_id”: null
},
{
“destination_cidr_block”: “10.194.160.0/19”,
“gateway_id”: null,
“instance_id”: “i-090a61db57068090c”,
“interface_id”: “eni-0ce2b460”,
“origin”: “CreateRoute”,
“state”: “active”,
“vpc_peering_connection_id”: null
},
{
“destination_cidr_block”: “0.0.0.0/0”,
“gateway_id”: null,
“instance_id”: null,
“interface_id”: null,
“origin”: “CreateRoute”,
“state”: “active”,
“vpc_peering_connection_id”: null
}
],
“tags”: {
“Name”: “private_c”
},
“vpc_id”: “vpc-12345f6a”
}
}
`