summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-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>
+