File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : install fail2ban packages
4
+ become : True
4
5
apt :
5
6
name : " {{ item }}"
6
7
state : " {{ fail2ban_package_state }}"
Original file line number Diff line number Diff line change 12
12
when : ansible_os_family == "Debian"
13
13
14
14
- name : update configuration file - /etc/fail2ban/fail2ban.conf
15
+ become : True
15
16
template :
16
17
src : " {{ role_path }}/templates/fail2ban.conf.j2"
17
18
dest : /etc/fail2ban/fail2ban.conf
22
23
23
24
24
25
- name : update configuration file - /etc/fail2ban/jail.local
26
+ become : True
25
27
template :
26
28
src : " {{ role_path }}/templates/jail.local.j2"
27
29
dest : /etc/fail2ban/jail.local
32
34
33
35
34
36
- name : start and enable service
37
+ become : True
35
38
service :
36
39
name : " {{ fail2ban_service_name }}"
37
40
state : " {{ fail2ban_service_state }}"
38
41
enabled : " {{ fail2ban_service_enabled }}"
42
+
You can’t perform that action at this time.
0 commit comments