Add fail2ban role and clean up yaml lint noise
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
---
|
||||
# vars file for ensure_fail2ban
|
||||
package_list:
|
||||
- name: fail2ban
|
||||
state: present
|
||||
service_list:
|
||||
- name: fail2ban
|
||||
state: started
|
||||
enabled: true
|
||||
template_list:
|
||||
- dest: /etc/fail2ban/jail.d/99-custom_jails.conf
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
||||
}}/etc/fail2ban/jail.d/99-custom_jails.conf.j2'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
Reference in New Issue
Block a user