main.yaml 932 B

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