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