main.yml 401 Bytes
Newer Older
bow's avatar
bow committed
1
2
3
4
5
6
7
8
9
10
11
12
13
---

- name: add mongodb vendor apt key
  apt_key: keyserver=hkp://keyserver.ubuntu.com:80 id=EA312927 state=present

- name: add mongodb vendor repository
  apt_repository: repo='deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main' state=present

- name: install mongodb-org
  apt: pkg=mongodb-org state=present

- name: start mongodb
  service: name=mongod state=started enabled=true