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 <kecarter@redhat.com>
Change-Id: Iaecd22bc16d1180e2ab8aee5efb8c75ab15f42e5
(cherry picked from commit c4a270eec8)
This commit is contained in:
Emilien Macchi 2020-07-22 09:35:12 -04:00
parent ae572a1ca4
commit 322566b941
1 changed files with 3 additions and 1 deletions

View File

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