diff options
Diffstat (limited to 'ansible/plays/malabaricus.yml')
-rw-r--r-- | ansible/plays/malabaricus.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/ansible/plays/malabaricus.yml b/ansible/plays/malabaricus.yml new file mode 100644 index 0000000..26587ad --- /dev/null +++ b/ansible/plays/malabaricus.yml @@ -0,0 +1,48 @@ +- hosts: + - malabaricus + roles: + - minio-server + - role: nginx + nginx__template: + - sites-enabled/default + - sites-enabled/minio + ipv6: "[::]:80" + server_name: minio.trygvis.io + +# Nextcloud +- hosts: + - 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 |