Skip to content

Commit d21e963

Browse files
Adam SnodgrassSergei Antipov
authored andcommitted
Use mongodb_conf_dbpath rather than a hard-coded path name
1 parent a14406e commit d21e963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/install.deb.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
- "{{mongodb_package}}"
3232
- numactl
3333

34-
- name: Ensure /data directory
35-
file: path=/data/db state=directory owner=mongodb recurse=yes
34+
- name: Ensure dbpath directory
35+
file: path={{mongodb_conf_dbpath}} state=directory owner=mongodb recurse=yes
3636

3737
- name: reload systemd
3838
shell: systemctl daemon-reload

0 commit comments

Comments
 (0)