Merge "Use conditions with Host prep block tasks" into stable/wallaby

This commit is contained in:
Zuul 2022-08-04 10:53:43 +00:00 committed by Gerrit Code Review
commit bd71b7dbf1
1 changed files with 6 additions and 3 deletions

View File

@ -686,15 +686,18 @@ outputs:
{% endraw %}
{%- for role in roles %}
- name: {{role.name}} Host prep block
when:
- tripleo_role_name == '{{role.name}}'
block:
- name: {{role.name}} Host prep steps
delegate_to: localhost
run_once: true
debug:
msg: Use --start-at-task '{{role.name}} Host prep steps' to resume from this task
- include_tasks: {{role.name}}/host_prep_tasks.yaml
when:
- tripleo_role_name == '{{role.name}}'
- name: {{role.name}} Host prep tasks
include_tasks: {{role.name}}/host_prep_tasks.yaml
when:
- tripleo_role_name == '{{role.name}}'
{%- endfor %}
tags:
- overcloud