summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/handlers/main.yml
blob: 4dcf1eef81bc60f1706752cf7849d8a77ec8a7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: restart openvswitch
  systemd: name=openvswitch state=restarted
  when: (not skip_node_svc_handlers | default(False) | bool) and 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: (not skip_node_svc_handlers | default(False) | bool) and openshift.common.is_containerized | bool

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

- name: reload sysctl.conf
  command: /sbin/sysctl -p