diff --git a/common/deploy-steps-tasks-step-0.yaml b/common/deploy-steps-tasks-step-0.yaml index 2428e3840c..c1fef68b94 100644 --- a/common/deploy-steps-tasks-step-0.yaml +++ b/common/deploy-steps-tasks-step-0.yaml @@ -41,4 +41,4 @@ - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/deploy_steps_tasks_step0.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" \ No newline at end of file + when: playbook_dir ~ '/' ~ _task_file_path is exists diff --git a/common/deploy-steps.j2 b/common/deploy-steps.j2 index f34f4e3ed5..47544fccec 100644 --- a/common/deploy-steps.j2 +++ b/common/deploy-steps.j2 @@ -461,9 +461,12 @@ outputs: run_once: true debug: msg: Use --start-at-task 'External deployment step 0' to resume from this task - - include_tasks: "external_deploy_steps_tasks_step0.yaml" - when: - - playbook_dir ~ '/external_deploy_steps_tasks_step0.yaml' is exists +{% raw %} + - include_tasks: "{{ _task_file_path }}" + vars: + _task_file_path: "external_deploy_steps_tasks_step0.yaml" + when: playbook_dir ~ '/' ~ _task_file_path is exists +{% endraw %} tags: - external - external_deploy_steps @@ -694,7 +697,7 @@ outputs: - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/host_prep_tasks.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" + when: playbook_dir ~ '/' ~ _task_file_path is exists tags: - overcloud - host_prep_steps @@ -764,7 +767,7 @@ outputs: - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/pre_deploy_step_tasks.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" + when: playbook_dir ~ '/' ~ _task_file_path is exists tags: - overcloud - pre_deploy_steps_tasks @@ -797,9 +800,12 @@ outputs: run_once: true debug: msg: Use --start-at-task 'External deployment step {{step}}' to resume from this task - - include_tasks: "external_deploy_steps_tasks_step{{step}}.yaml" - when: - - playbook_dir ~ '/external_deploy_steps_tasks_step{{step}}.yaml' is exists +{% raw %} + - include_tasks: "{{ _task_file_path }}" + vars: + _task_file_path: "external_deploy_steps_tasks_step{{step}}.yaml" + when: playbook_dir ~ '/' ~ _task_file_path is exists +{% endraw %} tags: - external - external_deploy_steps @@ -854,7 +860,7 @@ outputs: - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/deploy_steps_tasks_step{{ step }}.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" + when: playbook_dir ~ '/' ~ _task_file_path is exists {% endraw %} - name: Overcloud common deploy step tasks {{step}} block: @@ -986,7 +992,7 @@ outputs: - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/host_prep_tasks.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" + when: playbook_dir ~ '/' ~ _task_file_path is exists {% endraw %} - import_tasks: deploy_steps_tasks_step_0.yaml vars: @@ -1072,7 +1078,7 @@ outputs: - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/pre_upgrade_rolling_tasks.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" + when: playbook_dir ~ '/' ~ _task_file_path is exists tags: - always {% endraw %} @@ -1122,7 +1128,7 @@ outputs: - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/upgrade_tasks_step{{ step }}.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" + when: playbook_dir ~ '/' ~ _task_file_path is exists tags: - always {% endraw %} @@ -1136,7 +1142,7 @@ outputs: - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/post_upgrade_tasks.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" + when: playbook_dir ~ '/' ~ _task_file_path is exists tags: - always {% endraw %} @@ -1298,7 +1304,7 @@ outputs: - include_tasks: "{{ _task_file_path }}" vars: _task_file_path: "{{ tripleo_role_name }}/post_update_tasks.yaml" - when: "'{{ playbook_dir }}/{{ _task_file_path }}' is exists" + when: playbook_dir ~ '/' ~ _task_file_path is exists tags: - always {% endraw %}