mirror of
https://github.com/geerlingguy/ansible-role-pip.git
synced 2024-11-24 12:05:52 +01:00
21455b6dba
'extra_args' has been available since 1.0 of ansible.builtin and this module already uses 'executable' which was added in 1.3 so this should be perfectly safe to add.
16 lines
484 B
YAML
16 lines
484 B
YAML
---
|
|
- name: Ensure Pip is installed.
|
|
package:
|
|
name: "{{ pip_package }}"
|
|
state: present
|
|
|
|
- name: Ensure pip_install_packages are installed.
|
|
pip:
|
|
name: "{{ item.name | default(item) }}"
|
|
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 }}"
|