Created
January 2, 2015 18:55
-
-
Save omgjlk/f112c20a46e44dfc52dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/src/derp> cat boo.yaml | |
--- | |
- name: test something | |
hosts: localhost | |
gather_facts: false | |
tasks: | |
- debug: msg="hi" | |
changed_when: true | |
notify: a handler | |
- meta: flush_handlers | |
- debug: msg="after flush" | |
changed_when: true | |
notify: a handler | |
handlers: | |
- name: a handler | |
debug: msg="I am a handler" | |
- name: b handler | |
debug: msg="I am b handler" | |
~/src/derp> ansible-playbook -i derp, boo.yaml -vv | |
PLAY [test something] ********************************************************* | |
TASK: [debug msg="hi"] ******************************************************** | |
changed: [localhost] => { | |
"changed": true, | |
"msg": "hi" | |
} | |
NOTIFIED: [a handler] ********************************************************* | |
ok: [localhost] => { | |
"msg": "I am a handler" | |
} | |
TASK: [debug msg="after flush"] *********************************************** | |
changed: [localhost] => { | |
"changed": true, | |
"msg": "after flush" | |
} | |
NOTIFIED: [a handler] ********************************************************* | |
ok: [localhost] => { | |
"msg": "I am a handler" | |
} | |
PLAY RECAP ******************************************************************** | |
localhost : ok=4 changed=2 unreachable=0 failed=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I still disagree, see below: