Question about using tags

17 views
Skip to first unread message

Jeff Burricelli

unread,
Oct 16, 2023, 10:18:05 AM10/16/23
to Ansible Project
When running a playbook that has multiple tags, can I use "--tags" which will call in a role, but also specify "--skip-tags" which will then skip certain tasks in that role?   I've alwasy been under the impression you cannot use "tags" and "skip-tags" together in the same playbook run.

Thanks!

Brian Coca

unread,
Oct 16, 2023, 1:11:05 PM10/16/23
to ansible...@googlegroups.com
You can use both, just be aware that when in conflict skip-tags has
precedence over tags.

but looking at docs, we don't seem to have specified that nor have any
examples, .... someone should fix that.
--
----------
Brian Coca

Jeff Burricelli

unread,
Oct 16, 2023, 1:17:13 PM10/16/23
to Ansible Project
Thanks for confirming!
Reply all
Reply to author
Forward
0 new messages