homeserver/roles/geerlingguy.pip/tasks/main.yml

16 lines
484 B
YAML
Raw Normal View History

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