summaryrefslogtreecommitdiffstats
path: root/roles/contiv/handlers/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/contiv/handlers/main.yml')
-rw-r--r--roles/contiv/handlers/main.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/contiv/handlers/main.yml b/roles/contiv/handlers/main.yml
new file mode 100644
index 000000000..0fbe73036
--- /dev/null
+++ b/roles/contiv/handlers/main.yml
@@ -0,0 +1,18 @@
+---
+- name: reload systemd
+ command: systemctl --system daemon-reload
+
+- name: restart netmaster
+ service:
+ name: netmaster
+ state: restarted
+ when: netmaster_started.changed == false
+
+- name: restart netplugin
+ service:
+ name: netplugin
+ state: restarted
+ when: netplugin_started.changed == false
+
+- name: Save iptables rules
+ command: service iptables save