Fix permissions of log directory and file of MongoDB.
This commit is contained in:
parent
137e4f1f2a
commit
1c128e7590
|
@ -39,7 +39,6 @@
|
||||||
- name: Create log dir if missing
|
- name: Create log dir if missing
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
recurse: true
|
|
||||||
dest: "{{ mongodb_systemlog_path|dirname }}"
|
dest: "{{ mongodb_systemlog_path|dirname }}"
|
||||||
owner: "{{ mongodb_user }}"
|
owner: "{{ mongodb_user }}"
|
||||||
group: "{{ mongodb_user }}"
|
group: "{{ mongodb_user }}"
|
||||||
|
@ -57,7 +56,7 @@
|
||||||
dest: "{{ mongodb_systemlog_path }}"
|
dest: "{{ mongodb_systemlog_path }}"
|
||||||
owner: "{{ mongodb_user }}"
|
owner: "{{ mongodb_user }}"
|
||||||
group: "{{ mongodb_user }}"
|
group: "{{ mongodb_user }}"
|
||||||
mode: 0755
|
mode: 0644
|
||||||
when: ( mongodb_systemlog_destination == "file"
|
when: ( mongodb_systemlog_destination == "file"
|
||||||
and logfile_stat is defined
|
and logfile_stat is defined
|
||||||
and not logfile_stat.stat.exists )
|
and not logfile_stat.stat.exists )
|
||||||
|
|
Loading…
Reference in New Issue