Answer the question
In order to leave comments, you need to log in
Tags not working in ansible playbook, where did I go wrong?
In the main playbook.yml, if you specify the "aaa" tag in the role and call it with the standard method without additional parameters, the template role performs all tasks with the aaa and bbb tags. Well, that is, tags do not work globally in - include, although Ansible does not swear. If tags can be used for tasks, why can't I include an additional *.yml file so that I don't write tags for each task.?
Below is what I mean.
Ansible version 1.9.2
Directory structure
-- template-role/
-- tasks/
- main.yml
- aaa.yml
- bbb.yml
- hosts
- playbook_test_install.yml
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question