summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-master
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-01-03 15:18:40 -0500
committerAndrew Butcher <abutcher@redhat.com>2017-01-06 14:52:05 -0500
commitcd9dd38ec3d4eff4fc82704659e3628b68b046ff (patch)
tree5b018b96564fa7d003cca0c9498a33a7dfbd22be /playbooks/common/openshift-master
parentafa745c53379408955b87db91b9b29d51fabf37b (diff)
downloadopenshift-cd9dd38ec3d4eff4fc82704659e3628b68b046ff.tar.gz
openshift-cd9dd38ec3d4eff4fc82704659e3628b68b046ff.tar.bz2
openshift-cd9dd38ec3d4eff4fc82704659e3628b68b046ff.tar.xz
openshift-cd9dd38ec3d4eff4fc82704659e3628b68b046ff.zip
Use openshift.common.hostname when verifying API port available.
Diffstat (limited to 'playbooks/common/openshift-master')
-rw-r--r--playbooks/common/openshift-master/restart_services.yml12
1 files changed, 5 insertions, 7 deletions
diff --git a/playbooks/common/openshift-master/restart_services.yml b/playbooks/common/openshift-master/restart_services.yml
index 25fa10450..b40c32669 100644
--- a/playbooks/common/openshift-master/restart_services.yml
+++ b/playbooks/common/openshift-master/restart_services.yml
@@ -10,13 +10,11 @@
state: restarted
when: openshift_master_ha | bool and openshift.master.cluster_method != 'pacemaker'
- name: Wait for master API to come back online
- become: no
- local_action:
- module: wait_for
- host="{{ openshift.common.hostname }}"
- state=started
- delay=10
- port="{{ openshift.master.api_port }}"
+ wait_for:
+ host: "{{ openshift.common.hostname }}"
+ state: started
+ delay: 10
+ port: "{{ openshift.master.api_port }}"
when: openshift_master_ha | bool and openshift.master.cluster_method != 'pacemaker'
- name: Restart master controllers
service: