From d6510777d9a96adcce3bd9ee10715f82d80a9de0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Fri, 2 Sep 2022 09:29:55 +0200
Subject: [PATCH] test: skip linting with command-instead-of-shell rule against
 Bash-completion task, because it really NEEDS to use ansible.builtin.shell

---
 tasks/install_subapp.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tasks/install_subapp.yml b/tasks/install_subapp.yml
index 39d108f..fb97925 100644
--- a/tasks/install_subapp.yml
+++ b/tasks/install_subapp.yml
@@ -203,11 +203,11 @@
       group: "{{ vault_disapp_group }}"
 
 # Bash-Completion funktioniert ab 2020.2 anders, s. Abschnitt AUTOCOMPLETION in perldoc bin/subapp_rosetta.pl und bin/disapp_rosetta.pl
-- name: Bash-Completion aktivieren
+- name: Bash-Completion aktivieren    # noqa [command-instead-of-shell]
   ansible.builtin.shell:
     chdir: "/usr/local/bin/"
     cmd: "{{ item }}"
-    executable: "/usr/bin/bash"
+    executable: "/usr/bin/bash"       # Yup, this REALLY needs a Bash, so we HAVE to use ansible.builtin.shell, so don't show linter errors
   loop:
     - "complete -C subapp_rosetta.pl subapp_rosetta.pl"
     - "complete -C disapp_rosetta.pl disapp_rosetta.pl"
-- 
GitLab