Skip to content

Commit

Permalink
added to create when configured logfile does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Sep 19, 2023
1 parent 47fc6e8 commit dd7eb09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/section_5/cis_5.1.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
insertafter: "{{ item.insertafter }}"
create: true
with_items:
- { regexp: '^\*.emerg', line: '*.emerg :omusrmsg:*', insertafter: '^# Emergencies are sent to everybody logged in' }
- { regexp: '^auth,authpriv.\*', line: 'auth,authpriv.* /var/log/auth.log', insertafter: '^# First some standard log files. Log by facility' }
Expand Down

0 comments on commit dd7eb09

Please sign in to comment.