fail2ban/application: Moved service_name to global var

dehydrated
Felix Stupp 4 years ago
parent 239ef3124e
commit 85028e1dcb
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -85,6 +85,7 @@ global_dns_upstream_servers:
global_dnsmasq_configuration_file: "/etc/dnsmasq.conf"
global_dnsmasq_configuration_directory: "/etc/dnsmasq.d"
global_fail2ban_service_name: "fail2ban.service"
global_fail2ban_system_directory: "/etc/fail2ban"
global_fail2ban_configuration_directory: "{{ global_fail2ban_system_directory }}/fail2ban.d"
global_fail2ban_actions_directory: "{{ global_fail2ban_system_directory }}/action.d"

@ -3,11 +3,11 @@
- name: reload fail2ban
systemd:
enabled: yes
name: fail2ban.service
name: "{{ global_fail2ban_service_name }}"
state: reloaded
- name: restart fail2ban
systemd:
enabled: yes
name: fail2ban.service
name: "{{ global_fail2ban_service_name }}"
state: restarted

Loading…
Cancel
Save