Skip to content

Commit

Permalink
Add LogLevel VERBOSE for CIS compliance. (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee authored Mar 15, 2023
1 parent bc01f6b commit 78ea3ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: present
with_items:
loop:
- regexp: '^(#)?Banner'
line: 'Banner /etc/issue'
- regexp: '^(#)?LogLevel'
line: 'LogLevel VERBOSE'
notify: Restart sshd

- name: Apply STRICT hardening for sshd
when:
Expand Down Expand Up @@ -122,4 +125,5 @@
state: absent
notify: Restart sshd
when: crypto_policy in ['FIPS', 'FIPS:OSPP']

...

0 comments on commit 78ea3ad

Please sign in to comment.