From 035ea3c7dbe80c92c59635f710076c586c7394c8 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 30 Oct 2013 21:47:29 +0100 Subject: Configure fail2ban. --- roles/common/tasks/fail2ban.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/common/tasks/fail2ban.yml (limited to 'roles/common/tasks/fail2ban.yml') diff --git a/roles/common/tasks/fail2ban.yml b/roles/common/tasks/fail2ban.yml new file mode 100644 index 0000000..64283df --- /dev/null +++ b/roles/common/tasks/fail2ban.yml @@ -0,0 +1,10 @@ +- name: Install fail2ban + apt: pkg=fail2ban + +- name: Configure fail2ban + template: src=etc/fail2ban/jail.local.j2 + dest=/etc/fail2ban/jail.local + owner=root group=root + mode=0644 + notify: + - Restart fail2ban -- cgit v1.2.3