Skip to content
Snippets Groups Projects
Commit 1af86dc0 authored by Phillip Smith (fukawi2)'s avatar Phillip Smith (fukawi2)
Browse files

fail2ban; minor fixes to ansible syntax

parent 9c321fd3
No related branches found
No related tags found
No related merge requests found
......@@ -39,5 +39,7 @@ zabbix_agent_host_groups:
- Zabbix servers
fail2ban_jails:
- nginx
- postfix
sshd: true
postfix: true
dovecot: false
nginx: true
......@@ -27,3 +27,4 @@ fail2ban_jails:
sshd: true
postfix: true
dovecot: true
nginx: false
......@@ -4,6 +4,7 @@ fail2ban_jails:
sshd: false
postfix: false
dovecot: false
nginx: false
# use variables for these directives so they can be overridden at a host or
# group level as required. note that there cannot be a space between the
......
......@@ -5,6 +5,14 @@
notify:
- restart fail2ban
- name: create systemd unit override path
file:
path: "/etc/systemd/system/fail2ban.service.d"
state: "directory"
owner: "root"
group: "root"
mode: 0755
- name: install systemd unit override file
template:
src: "fail2ban.service.j2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment