Hello,
I developed a series of roles that accept some common tags (e.g.
create, destroy, etc). I also have a "common" role that doesn't make
use of tags, all its tasks should run regardless.
If I specify the roles like this:
---
- hosts: all
roles:
- common
- raid
- lvm
- nic
And run the playbook with `ansible-playbook -i inventory -t create
play.yml`. Then the tasks from common are all ignored, and the other
roles that support the create tag get executed.
After much searching I found the "untagged" tag, and so using "-t
untagged,create" causes the tasks from the common role to run.
Is this the expected behavior? I always that by passing a tag I was
activating something additional, not restricting things that don't have
restrictions (untagged).
Giovanni
--
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/1430951528.2627367.263696353.2E2616B6%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.