summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml')
-rw-r--r--playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml b/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml
index d9c82d8dc..9d29ba1ab 100644
--- a/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml
+++ b/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml
@@ -17,7 +17,7 @@
- include: ../initialize_facts.yml
- name: Update repos and initialize facts on all hosts
- hosts: oo_nodes_to_config
+ hosts: oo_masters_to_config:oo_nodes_to_config:oo_etcd_to_config:oo_lb_to_config
roles:
- openshift_repos
@@ -54,3 +54,9 @@
- include: ../../../../common/openshift-cluster/upgrades/pre/verify_docker_upgrade_targets.yml
- include: ../../../../common/openshift-cluster/upgrades/pre/gate_checks.yml
+
+- name: Verify masters are already upgraded
+ hosts: oo_masters_to_config
+ tasks:
+ - fail: msg="Master running {{ openshift.common.version }} must be upgraded to {{ openshift_version }} before node upgrade can be run."
+ when: openshift.common.version != openshift_version