update php-fpm config according to nextcloud docs

This commit is contained in:
Oli
2023-07-27 23:29:39 +00:00
parent 1d37dfa5b8
commit 27d1200dc1
2 changed files with 13 additions and 9 deletions

View File

@@ -7,6 +7,7 @@
option: "{{ item.option }}"
value: "{{ item.value }}"
state: "{{ item.state | default('present') }}"
mode: "0644"
loop: "{{ php_fpm_ini_options }}"
when: '"fpm" in php_modules'
notify: Restart php-fpm
@@ -14,7 +15,7 @@
- name: Configure FPM pool
lineinfile:
path: /etc/php/{{ php_version }}/fpm/pool.d/www.conf
regexp: '^{{ item.option }}\s'
regexp: '^;?{{ item.option }} = .*'
line: '{{ item.option }} = {{ item.value }}'
loop: "{{ php_fpm_pool_options }}"
when: '"fpm" in php_modules'