Merge pull request '[EVO] S'assurer que les paquets pipx sont dans le path' (#2) from ensurePath into master

Reviewed-on: #2
This commit is contained in:
pulsar89.5 2024-06-12 23:33:13 +00:00
commit 7c5742451b
3 changed files with 31 additions and 5 deletions

View File

@ -4,9 +4,9 @@
elbisna_prerequisites: elbisna_prerequisites:
- pipx - pipx
elbisna_pip_packages: elbisna_inject_packages:
- ansible
- netaddr - netaddr
- dnspython
elbisna_vault_passwd: "" elbisna_vault_passwd: ""

6
handlers/main.yml Normal file
View File

@ -0,0 +1,6 @@
---
# handlers file for ansible
- name: Redémarrer le système
ansible.builtin.reboot:
become: true

View File

@ -9,9 +9,29 @@
- name: Installer ansible - name: Installer ansible
community.general.pipx: community.general.pipx:
name: "{{ item }}" name: ansible
state: latest state: latest
install_deps: true install_deps: true
become: true become: true
become_user: "{{ elbisna_user }}" environment:
loop: "{{ elbisna_pip_packages }}" PIPX_HOME: /opt/pipx
PIPX_BIN_DIR: /usr/local/bin
- name: Injecter des paquets
community.general.pipx:
name: ansible
inject_packages: "{{ elbisna_inject_packages }}"
state: inject
become: true
environment:
PIPX_HOME: /opt/pipx
PIPX_BIN_DIR: /usr/local/bin
- name: Mettre à jour l'environnement
community.general.pipx:
name: ansible
state: upgrade_all
become: true
environment:
PIPX_HOME: /opt/pipx
PIPX_BIN_DIR: /usr/local/bin