summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--playbooks/common/openshift-node/scaleup.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/playbooks/common/openshift-node/scaleup.yml b/playbooks/common/openshift-node/scaleup.yml
index 1d79db353..bb3b1e780 100644
--- a/playbooks/common/openshift-node/scaleup.yml
+++ b/playbooks/common/openshift-node/scaleup.yml
@@ -6,6 +6,17 @@
roles:
- openshift_facts
+- name: Gather and set facts for first master
+ hosts: oo_first_master
+ vars:
+ openshift_master_count: "{{ groups.oo_masters | length }}"
+ pre_tasks:
+ - set_fact:
+ openshift_master_default_subdomain: "{{ lookup('oo_option', 'openshift_master_default_subdomain') | default(None, true) }}"
+ when: openshift_master_default_subdomain is not defined
+ roles:
+ - openshift_master_facts
+
- name: Configure docker hosts
hosts: oo_nodes_to_config
vars: