Hi guys,
I am trying to exclude a role in the meta/main.yaml according to a var that is defined in my main playbook. Is it possible to do it?
Here is what I would like to do:
-----------------------------------------------------------------------
playbook.yaml
---
- hosts: all
sudo: yes
roles:
- { role: icinga, tags: ['icinga'], reload: false }
- { role: icinga, tags: ['icinga-reload'], reload: true }
-----------------------------------------------------------------------
meta/main.yaml
---
dependencies:
- { role: baseline, when: not reload }
Thanks,
Florian