Skip to content

Instantly share code, notes, and snippets.

@fridim fridim/block1.yml
Last active Apr 11, 2017

Embed
What would you like to do?
not working
---
- 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
---
- name: conditionnal on blocks in handlers, false false
hosts: localhost
gather_facts: no
vars:
test1: false
test2: false
handlers:
- include: ./block1.yml
- include: ./block2.yml
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
You can’t perform that action at this time.