Skip to content

Commit

Permalink
parameterize apt key and apt repo variables
Browse files Browse the repository at this point in the history
remove when conditional
  • Loading branch information
James Yang committed Aug 14, 2015
1 parent d3f3cd7 commit b315a70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---

mongodb_package: mongodb-org
mongodb_apt_key_url: http://docs.mongodb.org/10gen-gpg-key.asc
mongodb_apt_key_id: 7F0CEB10
mongodb_force_wait_for_port: false
mongodb_pymongo_from_pip: false # Install latest PyMongo via PIP or package manager
mongodb_disable_thp: true
Expand Down
4 changes: 1 addition & 3 deletions tasks/install.deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
when: "'systemd' in systemd.stdout"

- name: Add APT key
apt_key: url=http://docs.mongodb.org/10gen-gpg-key.asc id=7F0CEB10
when: '"mongodb-org" in mongodb_package'
apt_key: url="{{mongodb_apt_key_url}}" id="{{mongodb_apt_key_id}}"

- name: Add APT repository
apt_repository: repo="{{mongodb_repository}}" update_cache=yes
when: '"mongodb-org" in mongodb_package'

- name: Endure /data directory
file: path=/data/db state=directory owner=mongodb recurse=yes
Expand Down

0 comments on commit b315a70

Please sign in to comment.