summaryrefslogtreecommitdiffstats
path: root/roles/nuage_master/handlers/main.yaml
blob: 162aaae1aa902d769fb15cab58bdb527964b5abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- name: restart nuage-openshift-monitor
  become: yes
  systemd: name=nuage-openshift-monitor state=restarted

- name: restart master
  systemd: name={{ openshift.common.service_type }}-master state=restarted
  when: (not openshift_master_ha | bool) and (not master_service_status_changed | default(false))

- name: restart master api
  systemd: name={{ openshift.common.service_type }}-master-api state=restarted
  when: >
    (openshift_master_ha | bool) and
    (not master_api_service_status_changed | default(false)) and
    openshift.master.cluster_method == 'native'

# TODO: need to fix up ignore_errors here
- name: restart master controllers
  systemd: name={{ openshift.common.service_type }}-master-controllers state=restarted
  when: >
    (openshift_master_ha | bool) and
    (not master_controllers_service_status_changed | default(false)) and
    openshift.master.cluster_method == 'native'
  ignore_errors: yes