Allowing configuration of becom and become_user
This commit is contained in:
parent
020cbad256
commit
feb28b7993
|
@ -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:
|
|
@ -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) }}"
|
||||
|
|
Loading…
Reference in New Issue