Skip to content

Instantly share code, notes, and snippets.

@markuman
Created September 14, 2018 08:49
Show Gist options
  • Save markuman/3f85613257cf41330bd355f616926543 to your computer and use it in GitHub Desktop.
Save markuman/3f85613257cf41330bd355f616926543 to your computer and use it in GitHub Desktop.
# funktioniert
- debug: var={{ item }}
with_items:
- ec2_out
TASK [debug] *********************************************************************************************
ok: [localhost] => (item=ec2_out) => {
"ec2_out": {
"changed": true,
"failed": false,
"instance_ids": [
"i-0f0de7bc8c16b4337"
],
...
# funktioniert nicht
- debug: var={{ item.ec2_out.instance_ids }}
with_items:
- ec2_out
- debug: var={{ item.instance_ids }}
with_items:
- ec2_out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment