Blame SOURCES/scap-security-guide-0.1.55-supress_lint_errors-PR_6542.patch

a297d8
From e5399b7bf17d5bdb995851b3d2a27f3ab2e6066a Mon Sep 17 00:00:00 2001
a297d8
From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= <jcerny@redhat.com>
a297d8
Date: Mon, 18 Jan 2021 15:21:51 +0100
a297d8
Subject: [PATCH] Supress Ansible lint error 503
a297d8
a297d8
It says that Tasks that run when changed should likely be handlers.
a297d8
However, we don't use handlers, and developer guide says that handlers
a297d8
aren't supported. I assume handlers would cause problems for SCAP
a297d8
scanners. Unless we start to support handlers this error isn't fixable
a297d8
for us therefore we can suppress it globally.
a297d8
a297d8
Addressing problems in scap-security-guide-lint-check Jenkins job:
a297d8
30/48 Test #260: ansible-playbook-ansible-lint-check-rhel8 .........***Failed  630.77 sec
a297d8
all/sudo_add_umask.yml:30: [E503] Tasks that run when changed should likely be handlers
a297d8
anssi_bp28_enhanced/sudo_add_umask.yml:30: [E503] Tasks that run when changed should likely be handlers
a297d8
anssi_bp28_high/sudo_add_umask.yml:30: [E503] Tasks that run when changed should likely be handlers
a297d8
anssi_bp28_intermediary/sudo_add_umask.yml:30: [E503] Tasks that run when changed should likely be handlers
a297d8
---
a297d8
 tests/ansible-lint_config.yml | 1 +
a297d8
 1 file changed, 1 insertion(+)
a297d8
a297d8
diff --git a/tests/ansible-lint_config.yml b/tests/ansible-lint_config.yml
a297d8
index d5107476a9..e4b4443f8c 100644
a297d8
--- a/tests/ansible-lint_config.yml
a297d8
+++ b/tests/ansible-lint_config.yml
a297d8
@@ -3,3 +3,4 @@ skip_list:
a297d8
   - '301' # Commands should not change things if nothing needs doing
a297d8
   - '303' # Using command rather than module
a297d8
   - '403' # Package installs should not use latest
a297d8
+  - '503' # Tasks that run when changed should likely be handlers