forked from evolix/ansible-roles
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:
parent
f0bc63e02e
commit
3a3708e9a6
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue