--- - name: Setup git hosts: git become: yes tasks: - name: Installation de git apt: name: git state: present - name: Clonage git Logan monitoring become: yes become_user: maxime command: git clone https://xmdrk.xyz/maxime/loustique-home.git /home/maxime/loustique-home args: creates: /home/maxime/loustique-home notify: "Confirmation clone" handlers: - name: "Confirmation clone" debug: msg: "Le dépôt a été cloné avec succès dans /home/maxime/loustique-home"