From 6c92a877f9fea58bd2983093af6d1bad09550cfb Mon Sep 17 00:00:00 2001 From: saibotk Date: Sat, 26 Sep 2020 21:32:10 +0200 Subject: [PATCH] fail2ban: Specify jail.local permissions & fix handler name --- roles/fail2ban/handlers/main.yml | 2 +- roles/fail2ban/tasks/main.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/fail2ban/handlers/main.yml b/roles/fail2ban/handlers/main.yml index 2110c08..8f9f79a 100644 --- a/roles/fail2ban/handlers/main.yml +++ b/roles/fail2ban/handlers/main.yml @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -- name: Restart fail2ban service +- name: restart fail2ban service service: name: "fail2ban" state: "restarted" diff --git a/roles/fail2ban/tasks/main.yml b/roles/fail2ban/tasks/main.yml index 5a71752..a61d1df 100644 --- a/roles/fail2ban/tasks/main.yml +++ b/roles/fail2ban/tasks/main.yml @@ -27,6 +27,7 @@ template: src: "jail.local.j2" dest: "/etc/fail2ban/jail.local" + mode: '0644' owner: 'root' group: 'root' notify: restart fail2ban service