Remove reference to become_user: root
This was the default anyway
This commit is contained in:
@ -2,14 +2,12 @@
|
||||
apt:
|
||||
name: fail2ban
|
||||
become: true
|
||||
become_user: root
|
||||
|
||||
- name: fail2ban filter
|
||||
template:
|
||||
src: files/haproxy-fail2ban-filter.conf
|
||||
dest: /etc/fail2ban/filter.d/haproxy-basic.conf
|
||||
become: true
|
||||
become_user: root
|
||||
register: fail2ban_filter
|
||||
|
||||
- name: fail2ban jail
|
||||
@ -17,7 +15,6 @@
|
||||
src: files/haproxy-fail2ban-jail.conf
|
||||
dest: /etc/fail2ban/jail.d/haproxy.conf
|
||||
become: true
|
||||
become_user: root
|
||||
register: fail2ban_jail
|
||||
|
||||
- name: Restart fail2ban
|
||||
@ -25,5 +22,4 @@
|
||||
name: haproxy
|
||||
state: restarted
|
||||
become: true
|
||||
become_user: root
|
||||
when: fail2ban_filter.changed or fail2ban_jail.changed
|
||||
|
Reference in New Issue
Block a user