Files
Ansible-x-Terraform/ansible/playbook/setup_git.yml
2026-04-05 20:50:04 +02:00

23 lines
569 B
YAML

---
- 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"