Skip to content

Commit 348c874

Browse files
author
Adam Snodgrass
committed
Use mongodb_conf_dbpath rather than a hard-coded path name
1 parent c5e2a1f commit 348c874

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)