Add fail2ban role and clean up yaml lint noise
This commit is contained in:
@@ -1,25 +1,27 @@
|
||||
---
|
||||
# vars file for ensure_log_rotation
|
||||
package_list:
|
||||
- name: 'logrotate'
|
||||
state: 'present'
|
||||
- name: logrotate
|
||||
state: present
|
||||
template_list:
|
||||
- dest: '/etc/logrotate.conf'
|
||||
- dest: /etc/logrotate.conf
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
group: root
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/logrotate.conf'
|
||||
- dest: '/etc/logrotate.d/btmp'
|
||||
owner: root
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
||||
}}/etc/logrotate.conf'
|
||||
- dest: /etc/logrotate.d/btmp
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
group: root
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/logrotate.d/btmp'
|
||||
- dest: '/etc/logrotate.d/wtmp'
|
||||
owner: root
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
||||
}}/etc/logrotate.d/btmp'
|
||||
- dest: /etc/logrotate.d/wtmp
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
group: root
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/logrotate.d/wtmp'
|
||||
|
||||
owner: root
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
||||
}}/etc/logrotate.d/wtmp'
|
||||
|
||||
Reference in New Issue
Block a user