Skip to content

Commit 4c5fb98

Browse files
committed
Allow for custom template also for fail2ban.local
1 parent cbbb83c commit 4c5fb98

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ security_autoupdate_mail_to: ""
2626
security_autoupdate_mail_on_error: true
2727

2828
security_fail2ban_enabled: true
29-
security_fail2ban_custom_configuration_template: "jail.local.j2"
29+
security_fail2ban_custom_jail_template: "jail.local.j2"
30+
security_fail2ban_custom_configuration_template: "fail2ban.local.j2"

tasks/fail2ban.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
- name: Copy jail custom configuration file into place.
1616
template:
17-
src: "{{ security_fail2ban_custom_configuration_template }}"
17+
src: "{{ security_fail2ban_custom_jail_template }}"
1818
dest: /etc/fail2ban/jail.local
1919
owner: root
2020
group: root
@@ -25,6 +25,7 @@
2525
- name: Copy fail2ban custom configuration file into place.
2626
template:
2727
src: fail2ban.local.j2
28+
src: "{{ security_fail2ban_custom_configuration_template }}"
2829
dest: /etc/fail2ban/fail2ban.local
2930
owner: root
3031
group: root

0 commit comments

Comments
 (0)