diff options
author | Christian Franke <nobody@nowhere.ws> | 2015-08-25 22:06:38 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2015-08-25 22:06:38 +0200 |
commit | 037b2539fdd6de92cdf9f0846476393af3590dd8 (patch) | |
tree | bf939083f55885de8073562f2e1a21b162bd6bb1 /roles/sublab_web/tasks/main.yaml | |
parent | af66612e6014bea48458125cda72d73c51bc3c20 (diff) |
Make the wiki work
Diffstat (limited to 'roles/sublab_web/tasks/main.yaml')
-rw-r--r-- | roles/sublab_web/tasks/main.yaml | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/roles/sublab_web/tasks/main.yaml b/roles/sublab_web/tasks/main.yaml index 5e52a65..fcfc7cb 100644 --- a/roles/sublab_web/tasks/main.yaml +++ b/roles/sublab_web/tasks/main.yaml @@ -1,5 +1,12 @@ --- -# Deploy sublab web config +- name: Install ikiwiki package and dependencies + apt: name={{ item }} state=present + with_items: + - ikiwiki + - perlmagick + - libmagickcore-extra + notify: Rebuild ikiwiki + - name: Place vhost config template: dest=/etc/apache2/sites-enabled/000-default_subweb.conf @@ -17,7 +24,6 @@ dest=/etc/apache2/sites/{{ sublab_web_server_name }}/{{ item }} src={{ item }}.j2 with_items: - - dump.conf - server.conf - ssl.conf - subdap-plain.conf @@ -34,7 +40,21 @@ group=sublab_web home="/var/www/{{sublab_web_server_name}}" +- name: Create Wiki group + group: name=sublab_wiki + +- name: Create Wiki user + user: + name=sublab_wiki + group=sublab_wiki + home="/home/wiki-{{sublab_web_server_name}}" + - include: as_webuser.yaml become: yes become_method: su become_user: sublab_web + +- include: as_wikiuser.yaml + become: yes + become_method: su + become_user: sublab_wiki |