From 36b8ff05c88facae8f89aee3884d8a1e1cfdcaed Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Mon, 7 Mar 2022 10:42:38 +0100 Subject: [PATCH] Add changed_when to shellcheck script --- roles/vim/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/vim/tasks/main.yml b/roles/vim/tasks/main.yml index 3378b40..e041cca 100644 --- a/roles/vim/tasks/main.yml +++ b/roles/vim/tasks/main.yml @@ -34,7 +34,9 @@ # some Arch derivatives don't have the package (arch32, archarm) - name: Run shellcheck script script: scripts/shellcheck_binary_fix.sh + register: shellcheck_script when: ansible_distribution == 'Archlinux' + changed_when: "'there is nothing to do' not in shellcheck_script.stdout" - name: Remove ~/.vim/colors/ directory file: