1.0
This commit is contained in:
23
ansible/playbook/setup_git.yml
Normal file
23
ansible/playbook/setup_git.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- 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"
|
||||
Reference in New Issue
Block a user