diff --git a/tasks/fix-cat2.yml b/tasks/fix-cat2.yml index dae1b90..cb75e87 100644 --- a/tasks/fix-cat2.yml +++ b/tasks/fix-cat2.yml @@ -2723,7 +2723,7 @@ - name: "MEDIUM | RHEL-08-010830 | PATCH | RHEL 8 must not allow users to override SSH environment variables." ansible.builtin.lineinfile: path: /etc/ssh/sshd_config - regexp: '(?i)^#?PermitUserEnvironment' + regexp: '(?i)^\s*PermitUserEnvironment' line: 'PermitUserEnvironment no' validate: '/usr/sbin/sshd -T -f %s' notify: restart sshd