diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-09-08 02:34:15 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-09-08 02:34:15 +0200 |
commit | 0542f18340b06a82d044027dea12b42bd22c90a0 (patch) | |
tree | ca8b005b5d811b6a624a51fe78123c4ded909c14 /roles/nextcloud | |
parent | 9af7d5c9f03fb2dac22f4b22c422333aec7cbfe7 (diff) |
Nextcloud: Tweak opcache settings.
Diffstat (limited to 'roles/nextcloud')
-rw-r--r-- | roles/nextcloud/tasks/main.yml | 10 |
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 @@ -11,43 +11,53 @@ - php-imagick - php-mbstring - php-xml - php-curl - php-intl - php-ldap - php-mysql - php-zip - php-json - php-gmp - name: Configure PHP 7.4 Zend opcache lineinfile: dest=/etc/php/7.4/fpm/php.ini regexp='^;?{{ item.var }}\\s*=' line="{{ item.var }} = {{ item.value }}" owner=root group=root mode=0644 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 createhome=no home=/nonexistent shell=/usr/sbin/nologin password=! state=present - name: Delete PHP 7.4 FPM's www pool file: path=/etc/php/7.4/fpm/pool.d/www.conf state=absent notify: - Restart php7.4-fpm - name: Configure PHP 7.4 FPM's nextcloud pool copy: src=etc/php/fpm/pool.d/nextcloud.conf dest=/etc/php/7.4/fpm/pool.d/nextcloud.conf owner=root group=root mode=0644 notify: |