fix logrotate

This commit is contained in:
nd 2021-12-26 03:23:06 +01:00
parent 3a52a1156f
commit 8fd7a20a7c
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -74,3 +74,10 @@
mode: 0644
notify:
- restart php-fpm
- name: patch logrotate to fix permissions
lineinfile:
path: "/etc/logrotate.d/php{{ php_version }}-fpm"
regexp: '^create 0640 root adm'
insertafter: '/var/log/php7.3-fpm.log {'
line: "create 0640 root adm"