main.yaml 735 B

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