From f99b3c444ef3994ef58f633c47fdf2447fac3aab Mon Sep 17 00:00:00 2001 From: Alexandre LE GALL Date: Thu, 12 Oct 2023 16:46:03 +0200 Subject: [PATCH] [EVO] S'assurer que les paquets pipx sont dans le path --- handlers/main.yml | 6 ++++++ tasks/installation.yml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 handlers/main.yml diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..10b43fa --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,6 @@ +--- +# handlers file for ansible + +- name: Redémarrer le système + ansible.builtin.reboot: + become: true diff --git a/tasks/installation.yml b/tasks/installation.yml index d823c6f..6634fb6 100644 --- a/tasks/installation.yml +++ b/tasks/installation.yml @@ -15,3 +15,13 @@ become: true become_user: "{{ elbisna_user }}" loop: "{{ elbisna_pip_packages }}" + environment: + PIPX_HOME: /opt/pipx + PIPX_BIN_DIR: /usr/local/bin + +#- name: S'assurer qu'ansible est dans le path +# ansible.builtin.command: +# cmd: pipx ensurepath +# become: true +# become_user: "{{ elbisna_user }}" +# notify: Redémarrer le système