From 0542f18340b06a82d044027dea12b42bd22c90a0 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 8 Sep 2024 02:34:15 +0200 Subject: Nextcloud: Tweak opcache settings. --- roles/nextcloud/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'roles/nextcloud/tasks') diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 9a0a47a..69a662d 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -28,9 +28,19 @@ with_items: - { var: opcache.memory_consumption, value: 512 } - { var: opcache.revalidate_freq, value: 180 } + - { var: opcache.interned_strings_buffer, value: 12 } notify: - Restart php7.4-fpm +- name: Configure PHP 7.4 CLI + lineinfile: dest=/etc/php/7.4/cli/php.ini + regexp='^;?{{ item.var }}\\s*=' + line="{{ item.var }} = {{ item.value }}" + owner=root group=root + mode=0644 + with_items: + - { var: apc.enable_cli, value: 1 } + - name: Create '_nextcloud' user user: name=_nextcloud system=yes group=nogroup -- cgit v1.2.3