Commit 8b5735d8 authored by nono's avatar nono 💻
Browse files

Fix git clonning

parent 1213ece9
......@@ -43,14 +43,31 @@
become: true
become_user: don
- name: Statistiques du dossier git
stat:
path: /home/don/don/.git
register: don_git_patch_check
- name: Téléchargement du code source du site de don
block:
git:
repo: https://git.laquadrature.net/lqdn-interne/don.git
dest: /home/don/don
clone: true
update: true
version: master
when: don_git_patch_check.stat.isdir is not defined or not don_git_patch_check.stat.isdir
# Le bloc au dessus ne clonera le dépot que si il n'existe pas déjà.
- name: Mise à jour du code source
git:
repo: https://git.laquadrature.net/lqdn-interne/don.git
dest: /home/don/don
clone: true
update: true
version: master
- name: Création du dossier de don
file:
state: directory
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment