summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-09-08 02:34:15 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-09-08 02:34:15 +0200
commit0542f18340b06a82d044027dea12b42bd22c90a0 (patch)
treeca8b005b5d811b6a624a51fe78123c4ded909c14 /roles
parent9af7d5c9f03fb2dac22f4b22c422333aec7cbfe7 (diff)
Nextcloud: Tweak opcache settings.
Diffstat (limited to 'roles')
-rw-r--r--roles/nextcloud/tasks/main.yml10
1 files changed, 10 insertions, 0 deletions
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