summaryrefslogtreecommitdiffstats
path: root/roles/wiki/handlers
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-05-31 23:10:53 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:54:00 +0200
commitacb068b4a5af0654d21c2830655b7c6156a2b845 (patch)
treee39d16f7bfa6c631271a9a5bf5720fdc0ea9f5ca /roles/wiki/handlers
parente63885bcc0d46bfe58a32fcfc1d02daae8735929 (diff)
Configure ikiwiki (website + wiki).
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