Files
2026-04-05 21:08:44 +02:00

23 lines
629 B
YAML

---
- name: Setup git
hosts: git
become: yes
tasks:
- name: Installation de git
apt:
name: git
state: present
#git pas encore prêt utilisation d'un depot existant pour le test
- name: Clonage git 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"