File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 32
32
file : state=touch dest={{ mongodb_systemlog_path }} owner={{ mongodb_user }} group={{mongodb_user}} mode=0755
33
33
when : logfile_stat is defined and not logfile_stat.stat.exists
34
34
35
+ - name : Ensure dbpath directory
36
+ file :
37
+ path : " {{ mongodb_storage_dbpath }}"
38
+ state : directory
39
+ owner : " {{ mongodb_user }}"
40
+ recurse : yes
41
+
35
42
- name : Configure mongodb
36
43
template : src=mongod.conf.j2 dest=/etc/mongod.conf backup=yes owner=root group=root mode=0644
37
44
register : config_result
Original file line number Diff line number Diff line change 44
44
- " {{mongodb_package}}"
45
45
- numactl
46
46
47
- - name : Ensure dbpath directory
48
- file : path={{mongodb_storage_dbpath}} state=directory owner=mongodb recurse=yes
49
-
50
47
- name : reload systemd
51
48
shell : systemctl daemon-reload
52
49
changed_when : false
You can’t perform that action at this time.
0 commit comments