Nginx: really fix munin-cgi log files permission

with_fileglob is executed locally, not remotely. It is useless here.
Instead, let's explicitely chown all files with a shell command.
This commit is contained in:
Jérémy Lecour 2017-12-05 23:44:59 +01:00
parent f0bc63e02e
commit 3a3708e9a6

View file

@ -16,13 +16,11 @@
- spawn-fcgi
- name: Adjust rights for munin-cgi
file:
path: '{{ item }}'
owner: www-data
group: munin
mode: "0660"
with_fileglob:
- /var/log/munin/munin-cgi-*
shell: "chown --verbose www-data:munin /var/log/munin/munin-cgi-*"
register: command_result
changed_when: "'changed' in command_result.stdout"
args:
warn: no
- name: Install Init script for Munin-fcgi
copy: