main #31

Merged
juan merged 154 commits from main into lab 2024-10-16 15:22:43 +00:00
3 changed files with 10 additions and 3 deletions
Showing only changes of commit 684a298e03 - Show all commits

View File

@ -6,7 +6,7 @@
systemd:
name: ssh
state: restarted
- name: restart-fail2ban
- name: restart fail2ban
systemd:
name: fail2ban
state: restarted

View File

@ -9,4 +9,11 @@
owner: root
group: root
mode: u=rw,g=r,o=r
notify: restart-fail2ban
notify: restart fail2ban
- name: Ensure file for auth sshd custom log exists
file:
path: /var/log/auth.log
state: touch
owner: root
group: adm
mode: u=rw,g=r,o=

View File

@ -18,4 +18,4 @@ enabled = true
port = 0:65535
filter = sshd
logpath = {{ fail2ban.logpath }}
action = %(action_mwl)s
action = %(action_mwl)s