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
This commit is contained in:
Sofer Athlan-Guyot 2021-06-16 11:56:57 +02:00
parent 0568ba6e7d
commit 1d854f6d53
1 changed files with 4 additions and 1 deletions

View File

@ -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