Add 'roles/ensure_log_rotation/' from commit '38364cec4fda418e640ed85852f00746e684a0aa'
git-subtree-dir: roles/ensure_log_rotation git-subtree-mainline:b4b2b24c85git-subtree-split:38364cec4f
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
---
|
||||
# vars file for ensure_log_rotation
|
||||
package_list:
|
||||
- name: 'logrotate'
|
||||
state: 'present'
|
||||
service_list:
|
||||
- name: 'logrotate.timer'
|
||||
state: 'started'
|
||||
enabled: 'yes'
|
||||
template_list:
|
||||
- dest: '/etc/logrotate.conf'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/logrotate.conf'
|
||||
- dest: '/etc/logrotate.d/btmp'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/logrotate.d/btmp'
|
||||
- dest: '/etc/logrotate.d/wtmp'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/logrotate.d/wtmp'
|
||||
|
||||
Reference in New Issue
Block a user