2015-05-28 11:32:57 +02:00
|
|
|
---
|
2015-11-29 20:25:29 +01:00
|
|
|
- name: Install fail2ban on ubuntu >= 14.04 and debian >= 8
|
2015-05-28 11:32:57 +02:00
|
|
|
apt: pkg={{ item }} state=installed
|
2016-03-02 15:54:10 +01:00
|
|
|
with_items: '{{ f2b_packages }}'
|
2015-06-19 18:45:02 +02:00
|
|
|
tags: fail2ban
|
2015-05-28 11:32:57 +02:00
|
|
|
|
2015-06-19 18:45:02 +02:00
|
|
|
- name: Ensure that fail2ban is enabled and running
|
|
|
|
service: name=fail2ban state=started enabled=yes
|