summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/handlers/main.yml
blob: d9c4ba1d79d80545c9f221fac425674dd1309bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: restart master
  service: 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
  service: 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'

- name: restart master controllers
  service: 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'