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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/450d7b54-dbb4-448a-b292-37212a2c5e81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.