From 445c6afe1f32edccac31eb67152cc8f32a15b9e6 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Wed, 27 Apr 2022 17:13:44 +0200 Subject: [PATCH] etc-git: fix when condition for /usr/share/scripts dir --- roles/etc-git/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/etc-git/tasks/main.yml b/roles/etc-git/tasks/main.yml index d68bdf8..941f45d 100644 --- a/roles/etc-git/tasks/main.yml +++ b/roles/etc-git/tasks/main.yml @@ -29,7 +29,7 @@ vars: repository_path: "/usr/share/scripts" when: - - _usr_share_scripts.stat.isdir + - _usr_share_scripts.stat.exists and _usr_share_scripts.stat.isdir - name: etc-git-optimize script is installed copy: