summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/handlers/main.yml
blob: 34071964aa5a81322059e12fcc2060a4b1b0fe2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: restart openvswitch
  service: name=openvswitch state=restarted
  when: not (ovs_service_status_changed | default(false) | bool) and openshift.common.use_openshift_sdn | bool
  notify:
  - restart openvswitch pause

- name: restart openvswitch pause
  pause: seconds=15
  when: openshift.common.is_containerized | bool

- name: restart node
  service: name={{ openshift.common.service_type }}-node state=restarted
  when: not (node_service_status_changed | default(false) | bool)