Commit 05f95146 authored by bow's avatar bow
Browse files

Add initial mongodb role

parent 0b2bf86f
- name: restart mongodb
service: name=mongod state=restarted enabled=yes
- name: add mongodb vendor apt key
apt_key: keyserver=hkp:// id=EA312927 state=present
- name: add mongodb vendor repository
apt_repository: repo='deb 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
......@@ -2,8 +2,8 @@
- name: deploy sentinel
hosts: sentinel
gather_facts: no
sudo: yes
roles: [nginx]
become: yes
roles: [nginx, mongodb]
- name: update apt cache
apt: update_cache=yes
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment