main.yaml 624 B

12345678910111213141516
  1. ---
  2. - name: restart master api
  3. systemd: name={{ openshift.common.service_type }}-master-api state=restarted
  4. when: >
  5. (openshift_master_ha | bool) and
  6. (not master_api_service_status_changed | default(false)) and
  7. openshift.master.cluster_method == 'native'
  8. # TODO: need to fix up ignore_errors here
  9. - name: restart master controllers
  10. systemd: name={{ openshift.common.service_type }}-master-controllers state=restarted
  11. when: >
  12. (openshift_master_ha | bool) and
  13. (not master_controllers_service_status_changed | default(false)) and
  14. openshift.master.cluster_method == 'native'
  15. ignore_errors: yes