summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2018-01-09 09:42:31 -0500
committerScott Dodson <sdodson@redhat.com>2018-01-09 10:30:33 -0500
commitb95953299e96e0e1bcd20ea02627fa14b8b0fc6f (patch)
tree9d07c3dd9051b802a1161873809fdc77e730717f /playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
parentb144534935e3bcfadd7af34fa0eb18f4cbac8d8b (diff)
downloadopenshift-b95953299e96e0e1bcd20ea02627fa14b8b0fc6f.tar.gz
openshift-b95953299e96e0e1bcd20ea02627fa14b8b0fc6f.tar.bz2
openshift-b95953299e96e0e1bcd20ea02627fa14b8b0fc6f.tar.xz
openshift-b95953299e96e0e1bcd20ea02627fa14b8b0fc6f.zip
Ensure that openshift_facts role is imported whenever we rely on
openshift_client_binary
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
index 50be0dee0..3fb028a16 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
@@ -22,6 +22,8 @@
# See: https://github.com/openshift/origin/pull/14625#issuecomment-308467060
- name: Pre master upgrade - Upgrade all storage
hosts: oo_first_master
+ roles:
+ - openshift_facts
tasks:
- name: Upgrade all storage
command: >
@@ -49,10 +51,9 @@
vars:
openshift_master_ha: "{{ groups.oo_masters_to_config | length > 1 }}"
serial: 1
+ roles:
+ - openshift_facts
tasks:
- - import_role:
- name: openshift_facts
-
# Run the pre-upgrade hook if defined:
- debug: msg="Running master pre-upgrade hook {{ openshift_master_upgrade_pre_hook }}"
when: openshift_master_upgrade_pre_hook is defined
@@ -128,6 +129,7 @@
hosts: oo_masters_to_config
roles:
- { role: openshift_cli }
+ - { role: openshift_facts }
vars:
__master_shared_resource_viewer_file: "shared_resource_viewer_role.yaml"
tasks: