Browse Source

Fix master service status changed fact.

Andrew Butcher 8 năm trước cách đây
mục cha
commit
10b070a434
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      roles/openshift_master/tasks/main.yml

+ 5 - 1
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.