blob: 244d98497714b680dc64451c3250a9b9b2d2afe8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|