mirror of
https://github.com/geerlingguy/ansible-role-pip.git
synced 2025-02-19 01:31:47 +01:00
Merge pull request #48 from speechmatics/extra-args
Add support for extra_args
This commit is contained in:
commit
0360ca42ee
@ -51,6 +51,10 @@ A list of packages to install with pip. Examples below:
|
||||
- name: docker
|
||||
virtualenv: /my_app/venv
|
||||
|
||||
# Or pass through any extra arguments.
|
||||
- name: my_special_package_from_my_special_repo
|
||||
extra_args: --extra-index-url https://my-domain/pypi/pypi-master/simple
|
||||
|
||||
## Dependencies
|
||||
|
||||
None.
|
||||
|
@ -10,5 +10,6 @@
|
||||
version: "{{ item.version | default(omit) }}"
|
||||
virtualenv: "{{ item.virtualenv | default(omit) }}"
|
||||
state: "{{ item.state | default(omit) }}"
|
||||
extra_args: "{{ item.extra_args | default(omit) }}"
|
||||
executable: "{{ pip_executable }}"
|
||||
loop: "{{ pip_install_packages }}"
|
||||
|
Loading…
Reference in New Issue
Block a user