15 lines
324 B
YAML
15 lines
324 B
YAML
|
---
|
||
|
- name: install fail2ban ubuntu >= 14.04
|
||
|
apt: pkg={{ item }} state=installed
|
||
|
with_items:
|
||
|
- fail2ban
|
||
|
tags:
|
||
|
- fail2ban
|
||
|
|
||
|
- name: Install the fail2ban custom jail file
|
||
|
template: src=jail.local.j2 dest=/etc/fail2ban/jail.local owner=root group=root mode=444
|
||
|
notify: Restart fail2ban
|
||
|
tags:
|
||
|
- fail2ban
|
||
|
|