fix: Add pipefail option to shell command in verify.yml
All checks were successful
Test / Lint (push) Successful in 15s
Test / Test (push) Has been skipped

Resolves ansible-lint risky-shell-pipe violation by adding
'set -o pipefail' to shell task that uses pipes.
This commit is contained in:
Daniel Akulenok
2026-02-08 00:26:46 +01:00
parent f15d33b619
commit 282e7601b4

View File

@@ -105,6 +105,7 @@
- name: Verify no critical errors in logs - name: Verify no critical errors in logs
ansible.builtin.shell: | ansible.builtin.shell: |
set -o pipefail
if grep -i "error" /var/log/named/default.log | grep -v "error reporting" > /dev/null; then if grep -i "error" /var/log/named/default.log | grep -v "error reporting" > /dev/null; then
exit 1 exit 1
fi fi