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