- hosts: - malabaricus tags: nextcloud become: yes vars: fpm_version: 7.3 handlers: - name: systemctl restart fpm become: yes systemd: name: "php{{ fpm_version }}-fpm" state: restarted roles: - minio-server - role: nginx nginx__template: - sites-enabled/default - sites-enabled/minio - snippets/nextcloud.conf ipv6: "[::]:80" server_name: minio.trygvis.io 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/{{ fpm_version }}/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 notify: systemctl restart fpm - lineinfile: path: '/etc/php/{{ fpm_version }}/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 notify: systemctl restart fpm # TODO: comply with warnings from https://malabaricus.trygvis.io/settings/admin/overview