Skip to content

Commit 1c128e7

Browse files
committed
Fix permissions of log directory and file of MongoDB.
1 parent 137e4f1 commit 1c128e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tasks/configure.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
- name: Create log dir if missing
4040
file:
4141
state: directory
42-
recurse: true
4342
dest: "{{ mongodb_systemlog_path|dirname }}"
4443
owner: "{{ mongodb_user }}"
4544
group: "{{ mongodb_user }}"
@@ -57,7 +56,7 @@
5756
dest: "{{ mongodb_systemlog_path }}"
5857
owner: "{{ mongodb_user }}"
5958
group: "{{ mongodb_user }}"
60-
mode: 0755
59+
mode: 0644
6160
when: ( mongodb_systemlog_destination == "file"
6261
and logfile_stat is defined
6362
and not logfile_stat.stat.exists )

0 commit comments

Comments
 (0)