Allowing configuration of becom and become_user

This commit is contained in:
Yoann David 2020-01-03 21:46:15 +01:00
parent 020cbad256
commit feb28b7993
2 changed files with 7 additions and 0 deletions

View File

@ -4,3 +4,8 @@ pip_package: python-pip
pip_executable: "{{ 'pip3' if pip_package.startswith('python3') else 'pip' }}"
pip_install_packages: []
# Allowing to configure become and become_user
# Useful when using pip with private repositories (git+ssh:// syntax)
#pip_become:
#pip_become_user:

View File

@ -12,3 +12,5 @@
state: "{{ item.state | default(omit) }}"
executable: "{{ pip_executable }}"
with_items: "{{ pip_install_packages }}"
become: "{{ pip_become | default(omit) }}"
become_user: "{{ pip_become_user | default(omit) }}"