Skip to content

Commit d3f3cd7

Browse files
committed
Merge pull request #29 from dluksza/patch-2
Ensure /data/db directory on debina
2 parents 53b969c + 8500b9b commit d3f3cd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tasks/install.deb.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
apt_repository: repo="{{mongodb_repository}}" update_cache=yes
2828
when: '"mongodb-org" in mongodb_package'
2929

30+
- name: Endure /data directory
31+
file: path=/data/db state=directory owner=mongodb recurse=yes
32+
3033
- name: Install MongoDB package
3134
apt: name={{item}} state=present
3235
with_items:

0 commit comments

Comments
 (0)