summaryrefslogtreecommitdiffstats
path: root/roles/old_wiki
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2015-02-24 11:50:31 +0100
committerMichael Scherer <misc@zarb.org>2015-02-24 11:50:31 +0100
commit568f4a167f00df144fcc1b9b9ad454d6e2aed884 (patch)
tree6ac3cf0f7207829452c81adf9f103013029dbe85 /roles/old_wiki
parente5cfc9ce455cc5364fb51a39b61e70c4380a68e7 (diff)
Add a temporary role to manage (losely) the old wiki setup
Diffstat (limited to 'roles/old_wiki')
-rw-r--r--roles/old_wiki/tasks/main.yml3
-rw-r--r--roles/old_wiki/templates/oldwiki.conf8
2 files changed, 11 insertions, 0 deletions
diff --git a/roles/old_wiki/tasks/main.yml b/roles/old_wiki/tasks/main.yml
new file mode 100644
index 0000000..fae7d0e
--- /dev/null
+++ b/roles/old_wiki/tasks/main.yml
@@ -0,0 +1,3 @@
+---
+- template: src=oldwiki.conf dest=/etc/httpd/conf.d/{{ website_url }}/oldwiki.conf
+ notify: restart httpd
diff --git a/roles/old_wiki/templates/oldwiki.conf b/roles/old_wiki/templates/oldwiki.conf
new file mode 100644
index 0000000..4dfc723
--- /dev/null
+++ b/roles/old_wiki/templates/oldwiki.conf
@@ -0,0 +1,8 @@
+# {{ ansible_managed }}
+Alias /w {{ old_wiki_dir }}
+Alias /wiki {{ old_wiki_dir }}/index.php
+<Directory "{{ old_wiki_dir }}">
+ Order deny,allow
+ Allow from all
+</Directory>
+