diff --git a/tasks/install.deb.yml b/tasks/install.deb.yml index f846a222..4a24509e 100644 --- a/tasks/install.deb.yml +++ b/tasks/install.deb.yml @@ -27,6 +27,9 @@ apt_repository: repo="{{mongodb_repository}}" update_cache=yes when: '"mongodb-org" in mongodb_package' +- name: Endure /data directory + file: path=/data/db state=directory owner=mongodb recurse=yes + - name: Install MongoDB package apt: name={{item}} state=present with_items: