summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-master
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-04-12 20:15:24 -0500
committerGitHub <noreply@github.com>2017-04-12 20:15:24 -0500
commit92723e8a6425e7a8b03d3413586cdd09b74d8a3e (patch)
treed2a6a3d2b4255a85629669c6a40fa9e757ea6925 /playbooks/byo/openshift-master
parenteb506980d5457d32737eecfbc9c83d4a1942e95b (diff)
parent558796bc195e6f17b11918ea877eb55c8ed0bb26 (diff)
downloadopenshift-92723e8a6425e7a8b03d3413586cdd09b74d8a3e.tar.gz
openshift-92723e8a6425e7a8b03d3413586cdd09b74d8a3e.tar.bz2
openshift-92723e8a6425e7a8b03d3413586cdd09b74d8a3e.tar.xz
openshift-92723e8a6425e7a8b03d3413586cdd09b74d8a3e.zip
Merge pull request #3895 from mtnbikenc/playbook-refactor
Merged by openshift-bot
Diffstat (limited to 'playbooks/byo/openshift-master')
-rw-r--r--playbooks/byo/openshift-master/restart.yml4
-rw-r--r--playbooks/byo/openshift-master/scaleup.yml24
2 files changed, 5 insertions, 23 deletions
diff --git a/playbooks/byo/openshift-master/restart.yml b/playbooks/byo/openshift-master/restart.yml
index 21e4cff1b..7988863f3 100644
--- a/playbooks/byo/openshift-master/restart.yml
+++ b/playbooks/byo/openshift-master/restart.yml
@@ -1,4 +1,8 @@
---
+- include: ../openshift-cluster/initialize_groups.yml
+ tags:
+ - always
+
- include: ../../common/openshift-cluster/std_include.yml
tags:
- always
diff --git a/playbooks/byo/openshift-master/scaleup.yml b/playbooks/byo/openshift-master/scaleup.yml
index a5705e990..8aa07a664 100644
--- a/playbooks/byo/openshift-master/scaleup.yml
+++ b/playbooks/byo/openshift-master/scaleup.yml
@@ -1,27 +1,5 @@
---
-- name: Create initial host groups for localhost
- hosts: localhost
- connection: local
- become: no
- gather_facts: no
- tags:
- - always
- tasks:
- - include_vars: ../../byo/openshift-cluster/cluster_hosts.yml
- - name: Evaluate group l_oo_all_hosts
- add_host:
- name: "{{ item }}"
- groups: l_oo_all_hosts
- with_items: "{{ g_all_hosts | default([]) }}"
- changed_when: False
-
-- name: Create initial host groups for all hosts
- hosts: l_oo_all_hosts
- gather_facts: no
- tags:
- - always
- tasks:
- - include_vars: ../../byo/openshift-cluster/cluster_hosts.yml
+- include: ../openshift-cluster/initialize_groups.yml
- include: ../../common/openshift-master/scaleup.yml
vars: