Skip to content
Snippets Groups Projects
Commit 9fe18034 authored by Gin Tan (Monash University)'s avatar Gin Tan (Monash University)
Browse files

Updating the handlers with systemd module & make a copy before deploy

Former-commit-id: bcdca672
parent e20f86cd
No related branches found
No related tags found
No related merge requests found
---
- name: restart fail2ban
service: name=fail2ban state=restarted
systemd:
name: fail2ban
enabled: yes
state: restarted
become: true
become_user: root
......@@ -3,7 +3,6 @@
yum:
name:
- fail2ban-server
- fail2ban-systemd
- fail2ban-sendmail
state: present
become: true
......@@ -14,6 +13,7 @@
template:
src: jail.conf.j2
dest: /etc/fail2ban/jail.conf
backup: yes
mode: 0644
owner: root
group: root
......
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