mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-01-22 11:08:52 +00:00
parameterize apt key and apt repo variables
remove when conditional
This commit is contained in:
parent
d3f3cd7c01
commit
b315a70cc0
@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
mongodb_package: mongodb-org
|
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_force_wait_for_port: false
|
||||||
mongodb_pymongo_from_pip: false # Install latest PyMongo via PIP or package manager
|
mongodb_pymongo_from_pip: false # Install latest PyMongo via PIP or package manager
|
||||||
mongodb_disable_thp: true
|
mongodb_disable_thp: true
|
||||||
|
@ -20,12 +20,10 @@
|
|||||||
when: "'systemd' in systemd.stdout"
|
when: "'systemd' in systemd.stdout"
|
||||||
|
|
||||||
- name: Add APT key
|
- name: Add APT key
|
||||||
apt_key: url=http://docs.mongodb.org/10gen-gpg-key.asc id=7F0CEB10
|
apt_key: url="{{mongodb_apt_key_url}}" id="{{mongodb_apt_key_id}}"
|
||||||
when: '"mongodb-org" in mongodb_package'
|
|
||||||
|
|
||||||
- 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-org" in mongodb_package'
|
|
||||||
|
|
||||||
- name: Endure /data directory
|
- name: Endure /data directory
|
||||||
file: path=/data/db state=directory owner=mongodb recurse=yes
|
file: path=/data/db state=directory owner=mongodb recurse=yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user