Add tag inheritance to post-provision tasks (#146)

Imported tasks inherit tags but Included tasks don't. This leads to confusion because included tasks need to have an explicit tag added or they won't run.

This is the workaround provided and [documented](https://docs.ansible.com/ansible/latest/user_guide/playbooks_tags.html#tag-inheritance-for-includes-blocks-and-the-apply-keyword) by Ansible to add tag inheritance to included tasks.
This commit is contained in:
BeansIsFat 2022-03-31 10:40:29 -04:00 committed by GitHub
parent 5b6cf0ab1a
commit 2f819d61bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,7 @@
when: configure_sublime when: configure_sublime
tags: ['sublime-text'] tags: ['sublime-text']
- block:
- name: Run configured post-provision ansible task files. - name: Run configured post-provision ansible task files.
include_tasks: "{{ outer_item }}" include_tasks: "{{ outer_item }}"
loop_control: loop_control: