ComplianceAsCode / content

Security automation content in SCAP, Bash, Ansible, and other formats
https://complianceascode.readthedocs.io/en/latest/
Other
2.24k stars 698 forks source link

Task "Set gpgcheck=1 for each yum repo" fails with templating type error when var ensure_gpgcheck_never_disabled is set to false #8945

Open enuguris opened 2 years ago

enuguris commented 2 years ago

Task "Set gpgcheck=1 for each yum repo" fails with templating type error when var ensure_gpgcheck_never_disabled is set to false. It works fine when set to true.

TASK [redhatofficial.rhel7_cis : Set gpgcheck=1 for each yum repo] ** fatal: [xxxxx]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ repo_grep_results.stdout | regex_findall( '(.+\\.repo):\\[(.+)\\]\\n?' ) }}): expected string or buffer"}

Mab879 commented 1 week ago

Still valid on newer RHELs.