Set-OPS-Public/roles/serveur_nextcloud/tasks/php.yml

24 lines
983 B
YAML
Raw Normal View History

---
# Gotcha spike : memory_limit 128M (defaut Debian) => pages Vue blanches. 512M requis.
- name: Deployer le tuning PHP recommande (memory_limit, opcache, upload)
ansible.builtin.template:
src: 99-nextcloud.ini.j2
dest: "/etc/php/{{ serveur_nextcloud_php_version }}/fpm/conf.d/99-setops-nextcloud.ini"
owner: root
group: root
mode: "0644"
notify: Recharger php-fpm nextcloud
# Gotcha spike : PDO pgsql (libpq) lit PGSSLMODE/PGSSLROOTCERT dans l'env de php-fpm.
- name: Injecter l'env TLS PostgreSQL dans le pool php-fpm
ansible.builtin.blockinfile:
path: "/etc/php/{{ serveur_nextcloud_php_version }}/fpm/pool.d/www.conf"
marker: "; {mark} SETOPS nextcloud TLS PostgreSQL"
block: |
env[PGSSLMODE] = {{ serveur_nextcloud_pg_sslmode }}
env[PGSSLROOTCERT] = {{ serveur_nextcloud_ca_racine }}
notify: Recharger php-fpm nextcloud
- name: Appliquer le rechargement php-fpm avant l'installation
ansible.builtin.meta: flush_handlers