Missing when statement preventing MongoDB repository to be added

This commit is contained in:
Guillaume Dedrie 2015-01-09 00:06:13 +01:00
parent 505f75aa06
commit 538813020d

View File

@ -8,6 +8,7 @@
- name: Add APT repository - name: Add APT repository
apt_repository: repo="{{mongodb_repository}}" update_cache=yes apt_repository: repo="{{mongodb_repository}}" update_cache=yes
when: mongodb_package == 'mongodb-org'
- name: Install MongoDB package - name: Install MongoDB package
apt: pkg={{mongodb_package}} state=present apt: pkg={{mongodb_package}} state=present