homeserver/roles/geerlingguy.pip/tasks/main.yml
mg e049d339a4 Rolle aktualisiert: pip (#462)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #462
2023-02-17 11:51:37 +01:00

15 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 }}"