Make sure deploy_steps_max is defined for update playbook

Not having deploy_steps_max failed the update. Also adding
non-repetitive facts gathering.

Change-Id: I1848dc47266a35a0ba383e55787c4aea986bd7a9
Closes-Bug: #1746306
This commit is contained in:
Jiri Stransky 2018-01-30 18:52:03 +01:00
parent 71d098e771
commit 9ec8c8f8af
1 changed files with 14 additions and 0 deletions

View File

@ -504,8 +504,22 @@ outputs:
when: role_name == '{{role.name}}'
{%- endfor %}
update_steps_playbook: |
- hosts: undercloud
name: Gather facts undercloud
gather_facts: yes
become: false
- hosts: overcloud
name: Gather facts overcloud
gather_facts: yes
- hosts: all
name: Load global variables
gather_facts: no
tasks:
- include_vars: global_vars.yaml
- hosts: overcloud
name: Run update
serial: 1
gather_facts: no
tasks:
- include: update_steps_tasks.yaml
with_sequence: start=0 end={{update_steps_max-1}}