Prevent creation of log dir if defined

This commit is contained in:
phil 2024-05-04 18:39:18 +02:00
parent d8b0c89506
commit 9354d71dc1
2 changed files with 2 additions and 0 deletions

View file

@ -1,5 +1,6 @@
---
php_fpm_log_dir: /var/log/phpfpm
php_fpm_create_log_dir: true
php_fpm_pool_dir: "/etc/php/{{ php_version.stdout }}/fpm/pool.d"
php_fpm_pool_config_file: "{{ php_fpm_pool_dir }}/%i.cfg"

View file

@ -18,6 +18,7 @@
path: "{{ php_fpm_log_dir }}"
state: directory
mode: "0755"
when: php_fpm_create_log_dir
- name: "PHP | Copy template for PHP-FPM systemd service and socket"
ansible.builtin.template: