diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-01-04 18:31:43 +0100 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-01-04 18:38:31 +0100 |
commit | ab4d465aa2541ccca2e4c0610b60e53ea9a29c21 (patch) | |
tree | 27c42af7e107b46820cd806979b1be7d1972c31f /templates | |
parent | e5697403dacf206a7fe99c2efa9fe03297785446 (diff) | |
download | ansible-clever-ab4d465aa2541ccca2e4c0610b60e53ea9a29c21.tar.gz ansible-clever-ab4d465aa2541ccca2e4c0610b60e53ea9a29c21.tar.zst ansible-clever-ab4d465aa2541ccca2e4c0610b60e53ea9a29c21.zip |
fix: statically include sub tasks for 'tags' to work
In ansible the `include_tasks` loads the tasks dynamically. Thus it
does not apply the tag specified at the include level to all sub
tasks.
In order to make sure all included tasks inherit the specified `tags:`
we need to include the tasks files "statically". It is very similar to
cases where we have a `when:` condition that we want to apply to all
included subtasks. cf https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#applying-when-to-roles-imports-and-includes
Diffstat (limited to 'templates')
0 files changed, 0 insertions, 0 deletions