Skip to content

Commit

Permalink
Fix datadir
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcrab committed Jan 24, 2016
1 parent 3971f4e commit 95d02cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ansible/roles/mongodb/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
mongodb_version: '3.2.0'
mongodb_user: 'mongodb'
mongodb_group: 'mongodb'
mongodb_dbPath: '/data/db'
2 changes: 1 addition & 1 deletion ansible/roles/mongodb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
file: path={{ mongodb_dbPath }} state=directory mode=0755 owner={{ mongodb_user }} group={{ mongodb_group }}
when: mongodb_dbPath is defined
tags:
- packages
- configuration

- name: Write mongod.conf
template: src=mongod.conf.j2 dest=/etc/mongod.conf owner={{ mongodb_user }} group={{ mongodb_group }} mode=0644
Expand Down

0 comments on commit 95d02cc

Please sign in to comment.