Last active
April 11, 2017 11:32
-
-
Save fridim/bf3cb4ca16cfeb5f6ed0ff270355efa6 to your computer and use it in GitHub Desktop.
working
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: conditionnal on blocks in handlers, false false | |
hosts: localhost | |
gather_facts: no | |
vars: | |
test1: false | |
test2: false | |
handlers: | |
- block: | |
- name: first block | |
debug: | |
msg: "first block, first task" | |
listen: "first block" | |
when: | |
- test1 | |
- block: | |
- name: second block | |
debug: | |
msg: "second block, first task" | |
listen: "second block" | |
when: | |
- test2 | |
tasks: | |
- name: dummy task | |
debug: | |
msg: "dummy task" | |
changed_when: true | |
notify: | |
- "first block" | |
- "second block" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment