Fix permissions of log directory and file of MongoDB.

This commit is contained in:
Mikhail Konyakhin 2019-11-25 13:13:48 +03:00
parent 137e4f1f2a
commit 1c128e7590
1 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@
- name: Create log dir if missing
file:
state: directory
recurse: true
dest: "{{ mongodb_systemlog_path|dirname }}"
owner: "{{ mongodb_user }}"
group: "{{ mongodb_user }}"
@ -57,7 +56,7 @@
dest: "{{ mongodb_systemlog_path }}"
owner: "{{ mongodb_user }}"
group: "{{ mongodb_user }}"
mode: 0755
mode: 0644
when: ( mongodb_systemlog_destination == "file"
and logfile_stat is defined
and not logfile_stat.stat.exists )