Giovanni Tirloni
unread,May 6, 2015, 6:32:16 PM5/6/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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