Merge pull request #114 from gaetanfl/use_fixed_pymongo_version

Allow user to choose PyMongo version when using pip
This commit is contained in:
Sergei Antipov 2018-06-27 22:00:50 -04:00 committed by GitHub
commit 4f2afe4a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -38,6 +38,7 @@ mongodb_package: mongodb-org
mongodb_version: "3.6"
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
mongodb_pymongo_pip_version: 3.6.1 # Choose PyMong version to install from pip. If not set use latest
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
mongodb_manage_service: true

View File

@ -9,6 +9,7 @@ mongodb_apt_key_id:
"3.6": "2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5"
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
mongodb_pymongo_pip_version: 3.6.1
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
mongodb_manage_service: true

View File

@ -68,5 +68,8 @@
when: mongodb_pymongo_from_pip
- name: Install PyMongo from PIP
pip: name=pymongo state=latest
pip:
name: pymongo
state: "{{ mongodb_pymongo_pip_version is defined | ternary('present', 'latest') }}"
version: "{{ mongodb_pymongo_pip_version | default(omit) }}"
when: mongodb_pymongo_from_pip

View File

@ -42,5 +42,6 @@
- name: Install PyMongo from PIP
pip:
name: pymongo
state: latest
state: "{{ mongodb_pymongo_pip_version is defined | ternary('present', 'latest') }}"
version: "{{ mongodb_pymongo_pip_version | default(omit) }}"
when: mongodb_pymongo_from_pip