Skip to content

Commit

Permalink
Better default python interpreter for mongodb role
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Sep 20, 2018
1 parent 96e1f16 commit 72fb0ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/mongodb/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
when: ansible_os_family == 'RedHat'
- role: bobbyrenwick.pip
when: mongodb_enable_auth
python: "{{ ansible_python_interpreter | default('python') }}"
python: "{{ mongodb_python }}"
pip_proxy: "{{ ansible_env.https_proxy | default(ansible_env.http_proxy | default('')) }}"
# defaults:
# pip: pip # the executable to check for
Expand Down
2 changes: 2 additions & 0 deletions roles/mongodb/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ mongodb_apt_keys:

# The admin database, used to add users
mongodb_admin_db: admin

mongodb_python: "{{ ansible_python_interpreter | default( ansible_python.executable | default('python') ) }}"

0 comments on commit 72fb0ff

Please sign in to comment.