vn-ansible/roles/linux-fail2ban/tasks/main.yaml

16 lines
279 B
YAML
Raw Normal View History

2024-09-23 12:30:38 +00:00
- 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