We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure_ssh_crypto_policy is failing due to a regex formatting error in the lineinfile module on RHEL8
RHEL8_STIG
RHEL8.8 Ansible 2.15.2 Python 3.11
raise source.error('global flags not at the start ' re.error: global flags not at the start of the expression at position 4
changed=false changed=false backup: '' found: 0 msg: '' backup: '' found: 0 msg: ''
If you move the (?i) to the front of the Regex this issue is resolved
The text was updated successfully, but these errors were encountered:
https://stackoverflow.com/questions/75895460/the-error-was-re-error-global-flags-not-at-the-start-of-the-expression-at-posi
Sorry, something went wrong.
FYI @Mab879 and @ggbecker
Fix ansible remediation of configure_ssh_crypto_policy.
2592332
The (?i) needs to appear first in the regex otherwise it throws an error. https://stackoverflow.com/questions/75895460/the-error-was-re-error-global-flags-not-at-the-start-of-the-expression-at-posi Fixes: ComplianceAsCode#10954
Successfully merging a pull request may close this issue.
Description of problem:
configure_ssh_crypto_policy is failing due to a regex formatting error in the lineinfile module on RHEL8
SCAP Security Guide Version:
RHEL8_STIG
Operating System Version:
RHEL8.8
Ansible 2.15.2
Python 3.11
Steps to Reproduce:
Actual Results:
Expected Results:
Additional Information/Debugging Steps:
If you move the (?i) to the front of the Regex this issue is resolved
The text was updated successfully, but these errors were encountered: