Skip to content

Instantly share code, notes, and snippets.

@abadger
Created December 4, 2014 18:46
Show Gist options
  • Save abadger/c72eeb21279e18f0e975 to your computer and use it in GitHub Desktop.
Save abadger/c72eeb21279e18f0e975 to your computer and use it in GitHub Desktop.
=== normal user ===
TASK: [test_conditionals | debug var=cond_bad_attribute] **********************
ok: [testhost] => {
"cond_bad_attribute": {
"bar": "a"
}
}
TASK: [test_conditionals | debug var=cond_bad_attribute.results] **************
ok: [testhost] => {
"cond_bad_attribute.results": "{{cond_bad_attribute.results}}"
}
TASK: [test_conditionals | test a with_items loop using a variable with a missing attribute] ***
skipping: [testhost]
TASK: [test_conditionals | debug var=result] **********************************
ok: [testhost] => {
"result": {
"changed": false,
"skipped": true
}
}
=== root ===
TASK: [test_conditionals | debug var=cond_bad_attribute] **********************
ok: [testhost] => {
"cond_bad_attribute": {
"bar": "a"
}
}
TASK: [test_conditionals | debug var=cond_bad_attribute.results] **************
ok: [testhost] => {
"cond_bad_attribute.results": "{{cond_bad_attribute.results}}"
}
TASK: [test_conditionals | test a with_items loop using a variable with a missing attribute] ***
skipping: [testhost] => (item=cond_bad_attribute.results)
TASK: [test_conditionals | debug var=result] **********************************
ok: [testhost] => {
"result": {
"changed": false,
"msg": "All items completed",
"results": [
{
"changed": false,
"skipped": true
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment