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 - spawn-fcgi
- name: Adjust rights for munin-cgi - name: Adjust rights for munin-cgi
file: shell: "chown --verbose www-data:munin /var/log/munin/munin-cgi-*"
path: '{{ item }}' register: command_result
owner: www-data changed_when: "'changed' in command_result.stdout"
group: munin args:
mode: "0660" warn: no
with_fileglob:
- /var/log/munin/munin-cgi-*
- name: Install Init script for Munin-fcgi - name: Install Init script for Munin-fcgi
copy: copy: