From 9846c2636282e1a62b53b34a54854423e7d6dbac Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 10 May 2019 08:40:07 +0200 Subject: o Adding nextcloud stuff. --- ansible/malabaricus.yml | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) (limited to 'ansible') diff --git a/ansible/malabaricus.yml b/ansible/malabaricus.yml index 6f4c5af..26587ad 100644 --- a/ansible/malabaricus.yml +++ b/ansible/malabaricus.yml @@ -9,7 +9,40 @@ ipv6: "[::]:80" server_name: minio.trygvis.io +# Nextcloud - hosts: - - all !malabaricus # no binaries for arm - roles: - - minio-bin + - malabaricus + tags: nextcloud + become: yes + tasks: + - apt: + name: + - php-imagick + tags: packages + - file: + path: /var/www/html/nextcloud/occ + mode: ug=rx,o= + owner: www-data + group: www-data + - copy: + dest: /etc/php/7.0/fpm/conf.d/99-nextcloud.ini + content: | + opcache.enable=1 + opcache.enable_cli=1 + opcache.interned_strings_buffer=8 + opcache.max_accelerated_files=10000 + opcache.memory_consumption=128 + opcache.save_comments=1 + opcache.revalidate_freq=1 + - lineinfile: + path: /etc/php/7.0/fpm/pool.d/www.conf + regexp: 'env[{{ item.key }}]' + line: 'env[{{ item.key }}] = {{ item.value }}' + with_dict: + HOSTNAME: '$HOSTNAME' + PATH: /usr/sbin:/usr/bin:/sbin:/bin + TMP: /tmp + TMPDIR: /tmp + TEMP: /tmp + +# TODO: comply with warnings from https://malabaricus.trygvis.io/settings/admin/overview -- cgit v1.2.3