fail2ban: Specify jail.local permissions & fix handler name
This commit is contained in:
parent
cc24a412c6
commit
6c92a877f9
2 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
- name: Restart fail2ban service
|
- name: restart fail2ban service
|
||||||
service:
|
service:
|
||||||
name: "fail2ban"
|
name: "fail2ban"
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
template:
|
template:
|
||||||
src: "jail.local.j2"
|
src: "jail.local.j2"
|
||||||
dest: "/etc/fail2ban/jail.local"
|
dest: "/etc/fail2ban/jail.local"
|
||||||
|
mode: '0644'
|
||||||
owner: 'root'
|
owner: 'root'
|
||||||
group: 'root'
|
group: 'root'
|
||||||
notify: restart fail2ban service
|
notify: restart fail2ban service
|
||||||
|
|
Loading…
Add table
Reference in a new issue