summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/handlers
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-06-09 15:29:35 -0400
committerAndrew Butcher <abutcher@redhat.com>2017-06-09 15:29:35 -0400
commit61e569b84e5748f92960fcd0c7eb10609c5b2e37 (patch)
treec922dc68525985da79a6b2a45055bbeda19d3be0 /roles/openshift_node/handlers
parentf510d55043a94f3e9ad6972a2bef3ff45662fa4a (diff)
downloadopenshift-61e569b84e5748f92960fcd0c7eb10609c5b2e37.tar.gz
openshift-61e569b84e5748f92960fcd0c7eb10609c5b2e37.tar.bz2
openshift-61e569b84e5748f92960fcd0c7eb10609c5b2e37.tar.xz
openshift-61e569b84e5748f92960fcd0c7eb10609c5b2e37.zip
Add daemon-reload handler to openshift_node and notify when /etc/systemd files have been updated.
Diffstat (limited to 'roles/openshift_node/handlers')
-rw-r--r--roles/openshift_node/handlers/main.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/roles/openshift_node/handlers/main.yml b/roles/openshift_node/handlers/main.yml
index 4dcf1eef8..a6bd12d4e 100644
--- a/roles/openshift_node/handlers/main.yml
+++ b/roles/openshift_node/handlers/main.yml
@@ -1,6 +1,8 @@
---
- name: restart openvswitch
- systemd: name=openvswitch state=restarted
+ 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
@@ -10,8 +12,13 @@
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
+ 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
+
+- name: reload systemd units
+ command: systemctl daemon-reload