Skip to content

Commit

Permalink
Configure alert_email into /etc/logcheck/logcheck.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Feb 23, 2025
1 parent 7702708 commit cce6415
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tasks/debian_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,22 @@
- result.failed
- result.msg != "Destination /etc/apt/listchanges.conf does not exist!"

- name: Configure SENDMAILTO in /etc/logcheck/logcheck.conf
become: true
tags:
- debian
- configuration
ansible.builtin.replace:
path: /etc/logcheck/logcheck.conf
regexp: '^(SENDMAILTO=).+$'
replace: '\g<1>"{{ alert_email }}"'
validate: '/bin/grep "^SENDMAILTO=\"{{ alert_email }}\"$" %s'
backup: true
register: result
failed_when:
- result.failed
- result.msg != "Path /etc/logcheck/logcheck.conf does not exist !"

# https://www.whonix.org/wiki/Packages_for_Debian_Hosts
# https://www.kicksecure.com/wiki/Packages_for_Debian_Hosts#Supported_Packages
# https://www.kicksecure.com/wiki/Linux_Kernel_Runtime_Guard_LKRG
Expand Down

0 comments on commit cce6415

Please sign in to comment.