diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78d6472a9bcf9fba3eb109ffb57cdb6e6f2b6cd1..d2f6d562c725c290dce470ce386fb50353d201be 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,4 +19,4 @@ shellcheck:
   before_script:
     - apt update && apt install -y shellcheck
   script:
-    - find ./roles/ -name "*.sh" -exec shellcheck "{}" \+
+    -  find ./roles/ -name "*.sh" | grep -v templates | xargs shellcheck