2021-02-13 14:20:18 +01:00
|
|
|
---
|
|
|
|
- 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) }}"
|
2023-02-17 11:51:37 +01:00
|
|
|
extra_args: "{{ item.extra_args | default(omit) }}"
|
2021-02-13 14:20:18 +01:00
|
|
|
executable: "{{ pip_executable }}"
|
2023-02-17 11:51:37 +01:00
|
|
|
loop: "{{ pip_install_packages }}"
|