Describe the Issue
Missing quote line 207 of cis_5.3.x.yml
Expected Behavior
Line should start with quote or have no quote at the end. I don't see why you're matching the commented line either, although that's just my opinion.
Actual Behavior
This regex is not matching causing the line "HostbasedAuthentication no" to be added every time the tasks is run.
Control(s) Affected
What controls are being affected by the issue
Environment (please complete the following information):
Ansible Version: 2.9
Host Python Version: Python 2.7.5
Ansible Server Python Version: Python 3.6.8
Additional Details:
Additional Notes
Example result of current version:
Describe the Issue Missing quote line 207 of cis_5.3.x.yml
Expected Behavior Line should start with quote or have no quote at the end. I don't see why you're matching the commented line either, although that's just my opinion.
Actual Behavior This regex is not matching causing the line "HostbasedAuthentication no" to be added every time the tasks is run.
Control(s) Affected What controls are being affected by the issue
Environment (please complete the following information):
Additional Notes Example result of current version:
grep ^HostbasedAuthentication /etc/ssh/sshd_config
HostbasedAuthentication no HostbasedAuthentication no HostbasedAuthentication no HostbasedAuthentication no HostbasedAuthentication no
Possible Solution According to Anisble Module Doc a single quote on either end of the line or no quotes is the correct syntax. I test both and agree.