Hello @all, i have an strage behavior with role dependencies and tags. I have an playbook like this:
--- - name: install and configure a basic set of tools gather_facts: true hosts: - is roles: - { role: monitoring, tags: monitoring } - { role: other, tags: other } In the "monitoring" role i have a dependency: --- dependencies: - { role: monitoring-basics } and in the tasks/main.yml i have some includes: --- - include: bm-crc.yml tags=monitoring:crc - include: bm-hostnotes.yml tags=monitoring:hostnotes - include: bm-vital.yml tags=monitoring:vital So when i run the playbook with "ansible-playbook playbook.yml --tags=monitoring" all went fine, the dependency role is executet bevor all task in the main.yml. But when i try to run a subset of taks with "ansible-playbook playbook.yml --tags=monitoring:crc" only the monitoring:crc tasks are executed but NOT the dependent role. Is this a wanted behavior? >From my point of view dependencies should executed every time i try to run somethin on the monitoring role even when i try to run an subset. Greeting Daniel -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2fe87927-b537-4ac7-ad19-d1bb9562ca5a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.