Add common_deploy_steps to post_upgrade_steps.

When refactoring deploy-steps to add a common playbook [0] it seems that
the post_upgrade_steps_playbook block was missed. As a consequence, when
executing the post_upgrade_tasks some of the common Ansible variables
are not available.

[0] - Ib00e8aa9f7d06517290543a8aaf8a2527969bd3c

Change-Id: I04704a14a8b932e21d21348e10014c707a87eeeb
Closes-Bug: #1875579
(cherry picked from commit 2c85bde000)
This commit is contained in:
Jose Luis Franco Arza 2020-04-28 10:09:52 +02:00 committed by Sergii Golovatiuk
parent 8ae59f72fe
commit 6e3c933ffe
1 changed files with 4 additions and 0 deletions

View File

@ -1049,6 +1049,10 @@ outputs:
post_upgrade_steps_playbook:
{{ self.deploy_steps_str_replace_params() }}
template: |
- import_playbook: common_deploy_steps_playbooks.yaml
vars:
deploy_source_host: "DEPLOY_SOURCE_HOST"
deploy_target_host: "DEPLOY_TARGET_HOST"
- hosts: DEPLOY_TARGET_HOST
any_errors_fatal: yes
tasks: