tripleo-heat-templates/common
Jesse Pretorius (odyssey4me) 2661ea24b7 [update/upgrade] Use include_tasks instead of import_tasks
include_tasks is dynamic and the tasks are either included (or not) at
runtime. This has the advantage that if a "when" keyword excludes the
include_tasks, then all the tasks are excluded as a group.

This is opposed to import_tasks which happen at playbook parse time. The
"when" keyword is inherited by each individual task that was imported.

While the two are functionally equivalent for these use cases,
import_tasks ends up being much slower, since ansible then has to
compute a much larger set of tasks to skip at runtime. Using
include_tasks is much faster, even at small scale (~50 hosts).

This is applying what was done in https://review.opendev.org/697510
to the update/upgrade tasks.

When doing include_tasks, we ensure that we also apply the 'always' tag
so that we have access to use the tags in the included task files. See
[a] for further details.

[a] https://odyssey4.me/2019/11/26/ansible-include-tags.html

Change-Id: I2eab008ca27546acbd2b1275f07bcca0b84b858c
(cherry picked from commit 3040a61411)
2020-03-10 14:52:30 +00:00
..
services [train-squash] Backport "all Keystone resources with Ansible" 2020-02-19 02:56:15 +00:00
container_startup_configs_tasks.yaml Generate startup configs files per step and per container 2020-02-05 11:55:06 +00:00
container-puppet.py [TRAIN] Backport squash for container-puppet.py 2020-02-19 17:13:35 +00:00
container-puppet.sh Merge "Update ro excludes" into stable/train 2020-02-19 06:37:54 +00:00
deploy-steps-tasks-step-0.j2.yaml Cleanup tasks for container-puppet.py 2020-03-09 01:07:57 +00:00
deploy-steps-tasks-step-1.yaml Cleanup tasks for container-puppet.py 2020-03-09 01:07:57 +00:00
deploy-steps-tasks.yaml Cleanup tasks for container-puppet.py 2020-03-09 01:07:57 +00:00
deploy-steps.j2 [update/upgrade] Use include_tasks instead of import_tasks 2020-03-10 14:52:30 +00:00
generate-config-tasks.yaml Cleanup tasks for container-puppet.py 2020-03-09 01:07:57 +00:00
hiera-steps-tasks.yaml [update] Ensure we get fresh hiera data before running update_steps. 2020-02-14 15:54:40 +00:00
host-container-puppet-tasks.yaml Add support to run Container Puppet tasks without Paunch 2020-02-14 20:49:39 +00:00
post.j2.yaml Consolidate puppet/docker deployments with one deploy steps workflow 2017-08-11 17:25:02 +00:00