main.yml 757 B

123456789101112
  1. ---
  2. - name: restart master
  3. service: name={{ openshift.common.service_type }}-master state=restarted
  4. when: (not openshift_master_ha | bool) and (not (master_service_status_changed | default(false) | bool))
  5. - name: restart master api
  6. service: name={{ openshift.common.service_type }}-master-api state=restarted
  7. when: (openshift_master_ha | bool) and (not (master_api_service_status_changed | default(false) | bool)) and openshift.master.cluster_method == 'native'
  8. - name: restart master controllers
  9. service: name={{ openshift.common.service_type }}-master-controllers state=restarted
  10. when: (openshift_master_ha | bool) and (not (master_controllers_service_status_changed | default(false) | bool)) and openshift.master.cluster_method == 'native'