Mastering Development System & Network

Use Ansible include_tasks with tags on the sub-tasks

Ansible 2.8.1 In my playbook tasks/ dir: main.yml dev.yml In main.yml I have a block like this: – include_tasks: dev.yml when: ec2_tag_env == ‘dev’ It works fine However, if I try to call a specific task within dev.yml using a tag. It won’t qualify the task during the run For example, this tagged task within […]