aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/06_hommabot/handlers/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/jails/06_hommabot/handlers/main.yml')
-rw-r--r--roles/jails/06_hommabot/handlers/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/jails/06_hommabot/handlers/main.yml b/roles/jails/06_hommabot/handlers/main.yml
new file mode 100644
index 0000000..d291200
--- /dev/null
+++ b/roles/jails/06_hommabot/handlers/main.yml
@@ -0,0 +1,5 @@
+- name: Restart hommabot
+ shell: service hommabot status && service hommabot restart
+ register: _hb_restart
+ failed_when: false
+ changed_when: _hb_restart.rc == 0