Created
March 24, 2016 19:52
-
-
Save moozer/c4060803e1f0677c0212 to your computer and use it in GitHub Desktop.
This file contains 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
- name: handler B | |
debug: msg="Handler B" |
This file contains 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
- hosts: all | |
user: vagrant | |
tasks: | |
- name: task to notify handler A (local) | |
shell: touch nn | |
notify: handler A | |
- name: task to notify handler B (from file) | |
shell: touch nn | |
notify: handler B | |
- name: task to notify non-existent handler | |
shell: touch nn | |
notify: handler non-exist # I would like an error here | |
handlers: | |
- name: handler A | |
debug: msg="Handler A" | |
- include: handlersFromFile.yml | |
- include: nonexist.yml # I would like an error here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tasks:
shell: touch nn
notify: handler A
shell: touch nn
notify: handler B
shell: touch nn
notify: handler non-exist # I would like an error here