Skip to content

Instantly share code, notes, and snippets.

@elleryq
Created January 22, 2016 07:19
Show Gist options
  • Save elleryq/f4d218c310b876f43b14 to your computer and use it in GitHub Desktop.
Save elleryq/f4d218c310b876f43b14 to your computer and use it in GitHub Desktop.
Ansible EC2 module result
# exact_count: 1
# nothing changed, instances will be in tagged_instances
TASK [debug] *******************************************************************
ok: [127.0.0.1] => {
"ec_aa": {
"changed": false,
"instance_ids": null,
"instances": [],
"tagged_instances": [
{
"private_dns_name": "",
"private_ip": "",
"public_dns_name": "",
"public_ip": "",
}
]
}
}
# exact_count from 2 to 1
# terminated instances will be in instances
# remained instances is still in tagged_instances
TASK [debug] *******************************************************************
ok: [127.0.0.1] => {
"ec_aa": {
"changed": true,
"instance_ids": [
""
],
"instances": [
{
"state": "terminated",
"private_dns_name": "",
"private_ip": "",
"public_dns_name": "",
"public_ip": "",
}
],
"tagged_instances": [
{
"private_dns_name": "",
"private_ip": "",
"public_dns_name": "",
"public_ip": "",
}
]
}
}
# exact_count: 1
TASK [debug] *******************************************************************
ok: [127.0.0.1] => {
"ec_aa": {
"changed": true,
"instance_ids": [
""
],
"instances": [
{
"private_dns_name": "",
"private_ip": "",
"public_dns_name": "",
"public_ip": "",
}
],
"tagged_instances": [
{
"private_dns_name": "",
"private_ip": "",
"public_dns_name": "",
"public_ip": "",
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment