Do not include node scale up playbook in case of new masters

Openshift-ansible gives us a friendly error when we do:

"Please run playbooks/openshift-master/scaleup.yml if you need to scale
up both masters and nodes. This playbook is only needed if you are only
adding new nodes and not new masters"

Change-Id: Ibf52b9dbabc9a4f86c11b7de345c3b73e157435c
Closes-Bug: #1802324
This commit is contained in:
Martin André 2018-10-26 18:38:28 +02:00
parent 346929d966
commit 8caaee30a9
1 changed files with 4 additions and 4 deletions

View File

@ -354,13 +354,13 @@ outputs:
- include: "{{openshift_prerequisites_playbook_path}}"
{% if tripleo_stack_action == 'UPDATE' and new_master_nodes | count > 0 %}
- include: "{{openshift_master_scaleup_playbook_path}}"
{% endif %}
{% if tripleo_stack_action == 'UPDATE' and has_new_nodes %}
{% if new_master_nodes | count > 0 %}
- include: "{{openshift_master_scaleup_playbook_path}}"
{% else %}
- include: "{{openshift_worker_scaleup_playbook_path}}"
{% endif %}
{% endif %}
{% if tripleo_stack_action == 'UPDATE' and openshift_upgrade %}
- include: "{{openshift_upgrade_playbook_path}}"