forked from nkakouros-original/ansible-role-nextcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare.yml
69 lines (68 loc) · 2.01 KB
/
prepare.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
---
- name: Prepare
hosts: all
become: true
vars:
mysql_root_password_update: false
mysql_databases:
- name: nextcloud
mysql_users:
- name: nextcloud
password: password
priv: "nextcloud.*:ALL"
mysql_packages:
- mariadb-client
- mariadb-server
- python-mysqldb
php_default_version_debian: '7.3'
php_packages_extra:
- "libapache2-mod-php{{ php_default_version_debian }}"
- "php{{ php_default_version_debian }}-zip"
- "php{{ php_default_version_debian }}-mysql"
- "php{{ php_default_version_debian }}-bz2"
- "php{{ php_default_version_debian }}-intl"
- "php{{ php_default_version_debian }}-gmp"
- "php{{ php_default_version_debian }}-apcu"
- "php{{ php_default_version_debian }}-imagick"
- "php{{ php_default_version_debian }}-dom"
- "php{{ php_default_version_debian }}-gd"
- "php{{ php_default_version_debian }}-curl"
- "php{{ php_default_version_debian }}-mbstring"
- php-mcrypt
apache_remove_default_vhost: true
apache_vhosts:
- servername: cloud.kakouros.net
documentroot: /var/www/html/nextcloud
extra_parameters: |
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
apache_mods_enabled:
- rewrite.load
- "php{{ php_default_version_debian }}.load"
- headers.load
- env.load
- dir.load
- mime.load
apache_state: restarted
manala_cron_files:
- file: nextcloud
user: www-data
jobs:
- name: Run nextcloud cron
job: "php-cli -f {{ apache_vhosts.0.documentroot }}/cron.php"
minute: "*/1"
pre_tasks:
- name: Gather facts
setup: null
become: false
tasks:
- include_role:
name: iambryancs.ppa-ondrej
- include_role:
name: geerlingguy.php
- include_role:
name: geerlingguy.apache
- include_role:
name: geerlingguy.mysql
- include_role:
name: manala.cron