Jérémy Lecour
28be7d1218
* introduce many variable with sensible defaults * generate an admin password if none is provided (default) * execute occ commands as unprivileged user
30 lines
728 B
YAML
30 lines
728 B
YAML
---
|
|
- block:
|
|
- name: Copy Nginx vhost
|
|
template:
|
|
src: nginx.conf.j2
|
|
dest: "/etc/nginx/sites-available/{{ nextcloud_instance_name }}.conf"
|
|
mode: "0640"
|
|
notify: reload nginx
|
|
tags:
|
|
- nextcloud
|
|
|
|
- name: Enable Nginx vhost
|
|
file:
|
|
src: "/etc/nginx/sites-available/{{ nextcloud_instance_name }}.conf"
|
|
dest: "/etc/nginx/sites-enabled/{{ nextcloud_instance_name }}.conf"
|
|
state: link
|
|
notify: reload nginx
|
|
tags:
|
|
- nextcloud
|
|
when: nextcloud_webserver == 'nginx'
|
|
|
|
- name: Copy PHP-FPM pool
|
|
template:
|
|
src: php-fpm.conf.j2
|
|
dest: "/etc/php/7.0/fpm/pool.d/{{ nextcloud_instance_name }}.conf"
|
|
mode: "0640"
|
|
notify: restart php-fpm
|
|
tags:
|
|
- nextcloud
|