From ffc74fc52f23cbe7d88ea347adbc681f87644f74 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Tue, 7 Jul 2015 21:27:23 +0200 Subject: [PATCH] Configurazione di git-daemon completata con successo. --- roles/git-daemon/tasks/git-daemon.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/git-daemon/tasks/git-daemon.yml b/roles/git-daemon/tasks/git-daemon.yml index c1142c6..e84326c 100644 --- a/roles/git-daemon/tasks/git-daemon.yml +++ b/roles/git-daemon/tasks/git-daemon.yml @@ -33,11 +33,12 @@ register: chk_clientpullinstall_repo changed_when: chk_clientpullinstall_repo.rc != 0 ignore_errors: yes + sudo: yes - name: Aggiorno il repo se già esistente - git: - repo: https://github.com/bglug-it/client-pull-installation.git - dest: /var/lib/git-daemon/repositories/client-pull-installation.git + shell: pushd /var/lib/git-daemon/repositories/client-pull-installation.git; git fetch -p origin; popd + sudo: yes + sudo_user: git-daemon when: chk_clientpullinstall_repo|success # E' in forma di shell perché non c'è modo di passare ad ansible