summaryrefslogtreecommitdiffstats
path: root/roles/wiki/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'roles/wiki/handlers')
-rw-r--r--roles/wiki/handlers/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/wiki/handlers/main.yml b/roles/wiki/handlers/main.yml
new file mode 100644
index 0000000..42ae6ef
--- /dev/null
+++ b/roles/wiki/handlers/main.yml
@@ -0,0 +1,7 @@
+---
+- name: Restart Nginx
+ service: name=nginx state=restarted
+
+- name: Refresh ikiwiki
+ sudo_user: ikiwiki
+ command: ikiwiki --setup /var/lib/ikiwiki/fripost-wiki.setup --refresh --wrappers