main.yml 563 B

1234567891011121314
  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))
  5. - name: restart master api
  6. service: name={{ openshift.common.service_type }}-master-api state=restarted
  7. when: openshift_master_ha | bool
  8. # TODO: need to fix up ignore_errors here
  9. - name: restart master controllers
  10. service: name={{ openshift.common.service_type }}-master-controllers state=restarted
  11. when: openshift_master_ha | bool
  12. ignore_errors: yes