I have a role which supports multiple platforms (Debian, RHEL,
FreeBSD, OpenBSD). I use 'when: ansible_pkg_mgr == ...' a lot to
autodetect, but that results in a lot of skipping... so I thought I
might use tags in addition, so users can choose to specifically select
only their platform to speedup playbook runs.
I would have OS specific tags in mind (debian, freebsd, ...) and task
oriented tags (install, configure, ...).
While playing with it, I noticed that '--tags debian,install' runs
tasks that are tagged as 'debian' OR 'install' (which includes tasks
tagged as freebsd,install -> results in lot of skipping again), is
there a way to say run only 'debian' *AND* 'install' tagged tasks?
I was not thinking of a specific ticket, but there should be many
instances of this being requested via the maliing lists and IRC and
even as comments in other tag related tickets.
I was not thinking of a specific ticket, but there should be many
instances of this being requested via the maliing lists and IRC
and even as comments in other tag related tickets.