|
@@ -2,11 +2,11 @@
|
|
# handlers file for ff-supernode
|
|
# handlers file for ff-supernode
|
|
# In Ubuntu restarting the networking service causes problems.
|
|
# In Ubuntu restarting the networking service causes problems.
|
|
# So we use ifdown and ifup to enable changes
|
|
# So we use ifdown and ifup to enable changes
|
|
-- name: Restart network
|
|
|
|
- shell: ifdown --exclude=lo -a && ifup --exclude=lo -a
|
|
|
|
-
|
|
|
|
- name: Restart supervisor
|
|
- name: Restart supervisor
|
|
service: name=supervisor state=restarted
|
|
service: name=supervisor state=restarted
|
|
|
|
|
|
- name: Reboot machine
|
|
- name: Reboot machine
|
|
- shell: reboot
|
|
|
|
|
|
+ shell: reboot
|
|
|
|
+
|
|
|
|
+- name: Restart cron
|
|
|
|
+ service: name=cron state=restarted
|