[EVO] Utiliser pipx

This commit is contained in:
pulsar89.5 2023-10-05 10:35:22 +02:00
parent 3409ac723c
commit b33258f574
2 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# defaults file for ansible
elbisna_prerequisites:
- python3-pip
- pipx
elbisna_pip_packages:
- ansible

View File

@ -8,6 +8,10 @@
become: true
- name: Installer ansible
ansible.builtin.pip:
name: "{{ elbisna_pip_packages }}"
community.general.pipx:
name: "{{ item }}"
state: latest
install_deps: true
become: true
become_user: "{{ elbisna_user }}"
loop: "{{ elbisna_pip_packages }}"