From 282e7601b48aa96d61879997a0ce7a86b825043e Mon Sep 17 00:00:00 2001 From: Daniel Akulenok Date: Sun, 8 Feb 2026 00:26:46 +0100 Subject: [PATCH] fix: Add pipefail option to shell command in verify.yml Resolves ansible-lint risky-shell-pipe violation by adding 'set -o pipefail' to shell task that uses pipes. --- molecule/bind9-20/verify.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/molecule/bind9-20/verify.yml b/molecule/bind9-20/verify.yml index d294f04..32a9b18 100644 --- a/molecule/bind9-20/verify.yml +++ b/molecule/bind9-20/verify.yml @@ -105,6 +105,7 @@ - name: Verify no critical errors in logs ansible.builtin.shell: | + set -o pipefail if grep -i "error" /var/log/named/default.log | grep -v "error reporting" > /dev/null; then exit 1 fi