diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-06-09 06:22:06 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-06-09 06:22:06 +0200 |
commit | 99dc31d3ec35c14f3487795523f71450c0d46250 (patch) | |
tree | 662cd48828ddb37b4f436f8cdbd46aadaeb3c1e5 /roles/elevate/liquid-truth/tasks/mongodb.yml | |
parent | added host for liquid-truth (diff) |
liquid truth: mongodb + nginx
Diffstat (limited to 'roles/elevate/liquid-truth/tasks/mongodb.yml')
-rw-r--r-- | roles/elevate/liquid-truth/tasks/mongodb.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/elevate/liquid-truth/tasks/mongodb.yml b/roles/elevate/liquid-truth/tasks/mongodb.yml new file mode 100644 index 00000000..244d9849 --- /dev/null +++ b/roles/elevate/liquid-truth/tasks/mongodb.yml @@ -0,0 +1,21 @@ +--- +- name: create mongodb data directory + file: + name: /srv/mongodb + state: directory + +- name: create bind mount for mongodb + mount: + src: /srv/mongodb + path: /var/lib/mongodb + fstype: none + opts: bind,defaults + state: mounted + +- name: install mongodb server + apt: + name: + - mongodb + - mongo-tools + - python-pymongo + state: present |