Merge branch 'debian-support' of https://github.com/guillaumededrie/Stouts.mongodb into guillaumededrie-debian-support

This commit is contained in:
Kirill Klenov 2014-09-02 23:15:52 +01:00
commit f54331fc08
2 changed files with 9 additions and 1 deletions

View File

@ -11,5 +11,8 @@ galaxy_info:
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- wheezy
categories:
- database:nosql

View File

@ -3,8 +3,13 @@
- name: Add APT key
apt_key: url=http://docs.mongodb.org/10gen-gpg-key.asc id=7F0CEB10
- name: Add APT repository
- name: Add APT repository (Ubuntu)
apt_repository: repo='deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' update_cache=yes
when: ansible_distribution == 'Ubuntu'
- name: Add APT repository (Debian)
apt_repository: repo='deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' update_cache=yes
when: ansible_distribution == 'Debian'
- name: Install mongodb-org
apt: pkg={{item}}