ansible-role-mongodb/tasks/install.deb.yml

19 lines
498 B
YAML
Raw Normal View History

2014-06-04 15:03:58 +00:00
---
2015-01-07 11:31:53 +00:00
- include_vars: "{{ansible_distribution}}.yml"
2014-06-04 15:03:58 +00:00
- name: Add APT key
apt_key: url=http://docs.mongodb.org/10gen-gpg-key.asc id=7F0CEB10
2015-01-23 09:43:11 +00:00
when: '"mongodb-org" in mongodb_package'
2014-06-04 15:03:58 +00:00
2015-01-07 11:31:53 +00:00
- name: Add APT repository
apt_repository: repo="{{mongodb_repository}}" update_cache=yes
2015-01-23 09:43:11 +00:00
when: '"mongodb-org" in mongodb_package'
2015-01-07 11:31:53 +00:00
- name: Install MongoDB package
apt: pkg={{mongodb_package}} state=present
- name: Install additional packages
2014-06-04 15:03:58 +00:00
apt: pkg={{item}}
with_items: mongodb_additional_packages