-
Notifications
You must be signed in to change notification settings - Fork 5
/
playbook.yml
73 lines (72 loc) · 1.83 KB
/
playbook.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
- name: Converge
hosts: all
become: true
vars:
mysql_databases:
- name: nextcloud
mysql_users:
- name: nextcloud
password: password
priv: "nextcloud.*:ALL"
apache_vhosts:
- servername: localhost
documentroot: /var/www/html/nextcloud
extra_parameters: |
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
nextcloud_database:
name: "{{ mysql_databases[0].name }}"
user: "{{ mysql_users[0].name }}"
pass: "{{ mysql_users[0].password }}"
nextcloud_admin_user: admin
nextcloud_admin_pass: password
nextcloud_urls_tmp: >-
{{ apache_vhosts
| map(attribute='servername')
| list
| zip_longest([], fillvalue=':80')
| map('join')
| list }}
nextcloud_urls: >-
{{ []
| zip_longest(nextcloud_urls_tmp, fillvalue='http://')
| map('join')
| list }}
nextcloud_apps:
- name: calendar
- name: tasks
- name: news
nextcloud_config:
apps:
core:
backgroundjobs_mode: cron
nextcloud_users:
- name: demo
pass: 'tE(DVOsdo24)$@#f9S'
groups:
- admin
resetpassword: false
display_name: Nikolaos Kakouros
settings:
- firstrunwizard:
show: 0
- calendar:
showWeekNr: true
pre_tasks:
- name: Gather facts
setup: ~
become: false
tasks:
- include_role:
name: nkakouros-original.nextcloud
post_tasks:
- name: Check Nextcloud responds ok
uri:
url: http://localhost
return_content: true
register: _result
- name: Check Nextcloud return login form
assert:
that:
- _result.content is search('a safe home for all your data')