summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-09-21 20:33:53 -0400
committerGitHub <noreply@github.com>2016-09-21 20:33:53 -0400
commit5116804e0717c4070ccc80aba9a0dc50a87aa35b (patch)
tree8c7cfebd564c104dd6eb58c927313388befc766e /roles/openshift_master/tasks
parentcae0ff6c74d9352d7abc1414d1f1f67f454c9803 (diff)
parent10b070a4342d4252c940c35d543f8949d88fcca6 (diff)
downloadopenshift-5116804e0717c4070ccc80aba9a0dc50a87aa35b.tar.gz
openshift-5116804e0717c4070ccc80aba9a0dc50a87aa35b.tar.bz2
openshift-5116804e0717c4070ccc80aba9a0dc50a87aa35b.tar.xz
openshift-5116804e0717c4070ccc80aba9a0dc50a87aa35b.zip
Merge pull request #2488 from abutcher/fix-master-status-changed
Fix master service status changed fact.
Diffstat (limited to 'roles/openshift_master/tasks')
-rw-r--r--roles/openshift_master/tasks/main.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index 6259fd996..d8a4aa9bb 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -202,6 +202,10 @@
when: openshift_master_ha | bool and openshift.master.cluster_method == 'native' and inventory_hostname == openshift_master_hosts[0]
register: start_result
+- set_fact:
+ master_api_service_status_changed: "{{ start_result | changed }}"
+ when: openshift_master_ha | bool and openshift.master.cluster_method == 'native' and inventory_hostname == openshift_master_hosts[0]
+
- pause:
seconds: 15
when: openshift_master_ha | bool and openshift.master.cluster_method == 'native'
@@ -216,7 +220,7 @@
- set_fact:
master_api_service_status_changed: "{{ start_result | changed }}"
- when: openshift_master_ha | bool and openshift.master.cluster_method == 'native'
+ when: openshift_master_ha | bool and openshift.master.cluster_method == 'native' and inventory_hostname != openshift_master_hosts[0]
# A separate wait is required here for native HA since notifies will
# be resolved after all tasks in the role.