From 322566b9413ffb9bbf9e2ac96296d884d2f78875 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 22 Jul 2020 09:35:12 -0400 Subject: [PATCH] Run external_deploy_tasks per step for each role Instead of running a giant playbook of external_deploy_tasks, we have now one playbook per step and per role; which will run individually to avoid a lot of skipped tasks at each step, and save time during a deployment or day 2 operation. Co-Authored-By: Kevin Carter Change-Id: Iaecd22bc16d1180e2ab8aee5efb8c75ab15f42e5 (cherry picked from commit c4a270eec89a792a50496a438cf9070834935e25) --- common/deploy-steps.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/deploy-steps.j2 b/common/deploy-steps.j2 index a06fbb737d..aa37bd6e91 100644 --- a/common/deploy-steps.j2 +++ b/common/deploy-steps.j2 @@ -691,7 +691,9 @@ outputs: run_once: true debug: msg: Use --start-at-task "External deployment step {{step}}" to resume from this task - - import_tasks: external_deploy_steps_tasks.yaml + - include_tasks: "external_deploy_steps_tasks_step{{step}}.yaml" + when: + - "'external_deploy_steps_tasks_step{{step}}.yaml' is exists" tags: - external - external_deploy_steps