Browse Source

Override hosts deployment_type fact for version we're upgrading to.

Devan Goodwin 9 years ago
parent
commit
75d357c9bb
1 changed files with 10 additions and 0 deletions
  1. 10 0
      playbooks/adhoc/upgrades/upgrade.yml

+ 10 - 0
playbooks/adhoc/upgrades/upgrade.yml

@@ -1,4 +1,14 @@
 ---
+- name: Update deployment type
+  hosts: OSEv3
+  roles:
+  - openshift_facts
+  post_tasks: # technically tasks are run after roles, but post_tasks is a bit more explicit.
+  - openshift_facts:
+      role: common
+      local_facts:
+        deployment_type: "{{ deployment_type }}"
+
 - name: Verify upgrade can proceed
   hosts: masters
   tasks: