-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwikinodes.play.yml
26 lines (23 loc) · 1006 Bytes
/
wikinodes.play.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
- hosts: alpha.wikinodes.wintergatan.community
roles:
- smmk.webhost
tasks:
- name: "Setup wiki {{ item.domain }}"
include_role:
name: smmk.dokuwiki
vars:
dokuwiki_docroot: "/var/www/{{ item.domain }}"
dokuwiki_owner: "{{ item.user }}"
dokuwiki_group: "{{ item.group }}"
loop:
- { domain: 'wiki.wintergatan.community', user: 'wtgtwiki', group: 'wtgtwiki'}
- name: "Setup dev accounts"
include_tasks: task/create_devusers.yml
loop:
- { name: 'tomq', groups: 'wtgtwiki', urls: ['wiki.wintergatan.community'], key: "{{ lookup('file', 'files/public_keys/id_tomq')}}" }
- { name: 'maesto', groups: 'wtgtwiki', urls:['wiki.wintergatan.community'], key: "{{ lookup('file', 'files/public_keys/id_maesto') }}" }
- name: "Ensure fileperms of shared webroots"
include_tasks: tasks/shared_webroot_fileperms.yml
loop:
- { name: 'wiki.wintergatan.community', owner: 'wtgtwiki', group: 'wtgtwiki'}