Skip to content

fix: remove trailing dot causing invalid YAML in goss vars template#93

Open
aaronk1 wants to merge 1 commit intoansible-lockdown:develfrom
aaronk1:fix/goss-vars-trailing-dot
Open

fix: remove trailing dot causing invalid YAML in goss vars template#93
aaronk1 wants to merge 1 commit intoansible-lockdown:develfrom
aaronk1:fix/goss-vars-trailing-dot

Conversation

@aaronk1
Copy link
Copy Markdown

@aaronk1 aaronk1 commented Apr 18, 2026

Summary

templates/ansible_vars_goss.yml.j2 contains a trailing dot in a variable reference:

rhel10cis_aide_cron_job: {{ rhel10cis_aide_cron_job. }}

The trailing . produces invalid YAML when the template is rendered. Fix: remove the trailing dot.

rhel10cis_aide_cron_job: {{ rhel10cis_aide_cron_job }}

Signed-off-by: aaronk1 aaronk1@users.noreply.github.com

'rhel10cis_rule_1_2_1_5: {{ rhel10cis_rule_1_2_1_5 }}. ## New' renders
as 'rhel10cis_rule_1_2_1_5: true.' which is not valid YAML. Goss will
fail to parse the vars file if run_audit is enabled. Also converted
'## New' to a valid YAML inline comment '# New'.

Signed-off-by: Aaron Klepinger <aaronk1@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Congrats on opening your first pull request and thank you for taking the time to help improve Ansible-Lockdown!
Please join in the conversation happening on the Discord Server as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant