16 lines
279 B
YAML
16 lines
279 B
YAML
|
- name: Install packages
|
||
|
apt:
|
||
|
name: fail2ban
|
||
|
state: present
|
||
|
loop:
|
||
|
- fail2ban
|
||
|
- rsyslog
|
||
|
- name: Configure service
|
||
|
template:
|
||
|
src: jail.local.j2
|
||
|
dest: /etc/fail2ban/jail.local
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: '0644'
|
||
|
notify: restart-fail2ban
|