Skip to content

Conversation

@Mab879
Copy link
Member

@Mab879 Mab879 commented Jan 30, 2026

Description:

Adjust lineinfile_when in ansible_set_config_file_dir seems that old way would get confused during tests and not remediate correctly.

Rationale:

Fixes issues with sshd exposed in #14343

Review Hints:

Run some Automatus tests for the effected rules.

./automatus.py rule --datastream ../build/ssg-rhel9-ds.xml --libvirt qemu:///system automatus_RHEL-9.8 --remediate-using ansible sshd_rekey_limit --scenarios param_conflict_directory.fail.sh

and

 ./automatus.py rule --datastream ../build/ssg-rhel9-ds.xml --libvirt qemu:///system automatus_RHEL-9.8 --remediate-using ansible sshd_set_max_auth_tries --scenarios param_conflict_directory.fail.sh 

@Mab879 Mab879 added this to the 0.1.80 milestone Jan 30, 2026
@Mab879 Mab879 added the bugfix Fixes to reported bugs. label Jan 30, 2026
@github-actions
Copy link

ATEX Test Results

Test artifacts have been submitted to Testing Farm.

Results: View Test Results
Workflow Run: View Workflow Details

This comment was automatically generated by the ATEX workflow.

Copy link
Collaborator

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have run the automatus test for sshd_set_max_auth_tries and sshd_rekey_limit with Ansible remediation and this fix fixes the failing tests.

@jan-cerny jan-cerny merged commit 67655f0 into ComplianceAsCode:master Feb 2, 2026
63 of 64 checks passed
@Mab879 Mab879 deleted the fix_param_conflict_directory_sshd branch February 2, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes to reported bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants