16 lines
619 B
YAML
16 lines
619 B
YAML
---
|
|
# task/main file for manage_pipx_packages
|
|
- name: "Import prerequisites.yml"
|
|
ansible.builtin.include_tasks: prerequisites.yml
|
|
when: manage_pipx_packages_install_prereqs
|
|
|
|
- name: "Install/remove required pip packages"
|
|
community.general.pipx:
|
|
name: "{{ item.name }}{% if item.version_constraint not in [None, '', 'latest'] %}{{ item.version_constraint }}{% endif %}"
|
|
state: "{{ item.state }}"
|
|
# environment:
|
|
# PIPX_BIN_DIR: "{{ manage_pipx_packages_path }}"
|
|
loop: "{{ manage_pipx_packages_list }}"
|
|
when: manage_pipx_packages_list is defined
|
|
and manage_pipx_packages_list not in [None, '']
|