Merge pull request #7 from quarkslab/fix/official-repo

Missing when statement preventing MongoDB repository to be added
This commit is contained in:
Kirill Klenov 2015-01-16 00:00:27 +03:00
commit 8fda783c87
1 changed files with 1 additions and 0 deletions

View File

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