mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2025-10-29 01:30:35 +00:00
19 lines
504 B
YAML
19 lines
504 B
YAML
---
|
|
- name: install fail2ban
|
|
apt: pkg=fail2ban state=latest
|
|
|
|
- name: /etc/fail2ban/jail.conf
|
|
template: src=fail2ban/jail.conf.j2 dest=/etc/fail2ban/jail.conf owner=root group=root mode=644
|
|
notify: restart fail2ban
|
|
|
|
- name: /etc/fail2ban/fail2ban.conf
|
|
template: src=fail2ban/fail2ban.conf.j2 dest=/etc/fail2ban/fail2ban.conf owner=root group=root mode=644
|
|
notify: restart fail2ban
|
|
|
|
- name: Enable and start the fail2ban service
|
|
systemd:
|
|
name: fail2ban
|
|
state: started
|
|
enabled: yes
|
|
|