ComplianceAsCode / ComplianceAsCode/content

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

Open
#8,945 1 comment 0 reactions 0 assignees View on GitHub
CIS RHEL7 triaged
Dominant language
Shell
Stars
2.8k
Forks
828
Avg merge
3d 8m
Merged PRs (30d)
80

Description

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"}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.