commit 140996aa7b18aadf0cea82166f7324d5af207ecf
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Nov 23 20:57:07 2016 +0100
Add initial support for moin
roles/moin/tasks/main.yml | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/roles/moin/tasks/main.yml b/roles/moin/tasks/main.yml
new file mode 100644
index 0000000..8224060
--- /dev/null
+++ b/roles/moin/tasks/main.yml
@@ -0,0 +1,33 @@
+---
+# tasks file for moin
+
+- name: install needed packages for moin
+ yum: pkg={{ item }} state=present
+ with_items:
+ - moin
+ - mod_wsgi
+ - httpd
+ tags:
+ - packages
+ - moin
+
+- name: create content directory for moin
+ file: path=/var/www/moin state=directory mode=0755
+ tags:
+ - config
+ - moin
+
+- name: create a symlink to moin.wsgi
+ file: path=/var/www/moin/moin.wsgi dest=/usr/share/moin/server/moin.wsgi state=link
+ tags:
+ - config
+ - moin
+
+- name: moin apache config
+ copy: src=moin.conf dest=/etc/http/conf.d/moin.conf
+ tags:
+ - config
+ - moin
+ notify:
+ - restart apache
+
Show replies by date