From 1d854f6d53728be42f0bfe62029b2b2b03b435eb Mon Sep 17 00:00:00 2001 From: Sofer Athlan-Guyot Date: Wed, 16 Jun 2021 11:56:57 +0200 Subject: [PATCH] Make sure create_workload tasks inherit the always tags. Dynamicly included tasks don't inherits tags from the parent include_task, only import does this. In order to not use import and still have inheritence, we need to use the "apply" workaround[1] [1] https://docs.ansible.com/ansible/latest/user_guide/playbooks_tags.html#tag-inheritance-for-includes-blocks-and-the-apply-keyword Change-Id: I86d15adfa5f685fc0cd62a624ca0219566a02e22 Closes-Bug: 1932139 --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index ef25d713..a7aab3ff 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,7 +2,10 @@ # tasks file for tripleo-upgrade - name: prepare workload scripts - include_tasks: common/create_workload.yml + include_tasks: + file: common/create_workload.yml + apply: + tags: always when: workload_launch|bool or launch_sanity_workload|bool tags: always