blob: 6d1230d34cd7c1a24ca428c02d5d71863c344a2b (
plain) (
blame)
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
|
# nextcloud ~~ roles/nextcloud/tasks/main.yml
# nextcloud setup
---
- name: install nextcloud
package: name=nextcloud state=present
- name: generate nextcloud httpd configuration
template:
src: nextcloud.conf.httpd.j2
dest: /etc/httpd.d/nextcloud.conf
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
when: ansible_distribution == "OpenBSD"
- name: ensure extensions are enabled in php-fpm
lineinfile:
path: /etc/php-7.3.ini
regexp: "{{ item }}"
line: "{{ item }}"
loop:
- extension=curl
- extension=pdo_pgsql
- extension=intl
- name: ensure other config are corrects in php-fpm
lineinfile:
path: /etc/php-7.3.ini
regexp: "^{{ item[0] }}*"
line: "{{ item[0] }}={{ item[1] }}"
loop:
- [ "allow_url_fopen", "On" ]
- [ "upload_max_filesize", "100M" ]
- [ "post_max_size", "100M" ]
- name: copy configuration for domain name and tls in chroot
shell: |
mkdir -p /var/www/etc/ssl
install -m 444 -o root -g bin /etc/resolv.conf /var/www/etc
install -m 444 -o root -g bin /etc/ssl/cert.pem /etc/ssl/openssl.cnf /var/www/etc/ssl/
- name: ensure php-fpm is restarted and enabled
service:
name: php73_fpm
state: restarted
enabled: true
|