Skip to content

Instantly share code, notes, and snippets.

@jimi-c
Created September 16, 2015 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimi-c/9b0248a79f1068b30a0f to your computer and use it in GitHub Desktop.
Save jimi-c/9b0248a79f1068b30a0f to your computer and use it in GitHub Desktop.
# ansible-playbook -vv samples/test_blocks_of_blocks.yml
Using /etc/ansible/ansible.cfg as config file
1 plays in samples/test_blocks_of_blocks.yml
PLAY ***************************************************************************
TASK [debug msg=are we there yet?] *********************************************
ok: [localhost] => {
"changed": false,
"msg": "are we there yet?"
}
TASK [debug msg=a random always block] *****************************************
ok: [localhost] => {
"changed": false,
"msg": "a random always block"
}
TASK [fail] ********************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed as requested from task"}
TASK [debug msg=rescuing from the fail] ****************************************
ok: [localhost] => {
"changed": false,
"msg": "rescuing from the fail"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=1
# ansible-playbook -vv samples/test_blocks_of_blocks.yml -e skip_me=True
Using /etc/ansible/ansible.cfg as config file
1 plays in samples/test_blocks_of_blocks.yml
PLAY ***************************************************************************
TASK [debug msg=are we there yet?] *********************************************
ok: [localhost] => {
"changed": false,
"msg": "are we there yet?"
}
TASK [debug msg=a random always block] *****************************************
ok: [localhost] => {
"changed": false,
"msg": "a random always block"
}
TASK [fail] ********************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
PLAY RECAP *********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment