summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/handlers/main.yml
blob: e1b95eda48abf4fe9ade0e501abda60a74cbf1ee (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) | bool))

- 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) | bool)) 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) | bool)) and openshift.master.cluster_method == 'native'