Skip to content
Snippets Groups Projects
Commit bcdca672 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

parent 04e7eb51
No related branches found
No related tags found
1 merge request!258Updating the handlers with systemd module & make a copy before deploy
--- ---
- name: restart fail2ban - name: restart fail2ban
service: name=fail2ban state=restarted systemd:
name: fail2ban
enabled: yes
state: restarted
become: true
become_user: root
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
yum: yum:
name: name:
- fail2ban-server - fail2ban-server
- fail2ban-systemd
- fail2ban-sendmail - fail2ban-sendmail
state: present state: present
become: true become: true
...@@ -14,6 +13,7 @@ ...@@ -14,6 +13,7 @@
template: template:
src: jail.conf.j2 src: jail.conf.j2
dest: /etc/fail2ban/jail.conf dest: /etc/fail2ban/jail.conf
backup: yes
mode: 0644 mode: 0644
owner: root owner: root
group: 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