Compare commits
No commits in common. "f5b1d66dd8cbe0e6965ffa3e18b079ff7631b93e" and "01268bb64a44ca66c4f663a83ecc462748d7fe5c" have entirely different histories.
f5b1d66dd8
...
01268bb64a
@ -1,23 +0,0 @@
|
||||
# see "man logrotate" for details
|
||||
|
||||
# global options do not affect preceding include directives
|
||||
|
||||
# rotate log files weekly
|
||||
daily
|
||||
|
||||
# keep 4 weeks worth of backlogs
|
||||
rotate 90
|
||||
|
||||
# create new (empty) log files after rotating old ones
|
||||
create
|
||||
|
||||
# use date as a suffix of the rotated file
|
||||
dateext
|
||||
|
||||
# uncomment this if you want your log files compressed
|
||||
compress
|
||||
|
||||
# packages drop log rotation information into this directory
|
||||
include /etc/logrotate.d
|
||||
|
||||
# system-specific logs may also be configured here.
|
@ -1,7 +0,0 @@
|
||||
# no packages own btmp -- we'll rotate it here
|
||||
/var/log/btmp {
|
||||
missingok
|
||||
monthly
|
||||
create 0660 root utmp
|
||||
rotate 1
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
# no packages own wtmp -- we'll rotate it here
|
||||
/var/log/wtmp {
|
||||
missingok
|
||||
monthly
|
||||
create 0664 root utmp
|
||||
minsize 1M
|
||||
rotate 1
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# see "man logrotate" for details
|
||||
|
||||
# global options do not affect preceding include directives
|
||||
|
||||
# rotate log files weekly
|
||||
daily
|
||||
|
||||
# keep 4 weeks worth of backlogs
|
||||
rotate 90
|
||||
|
||||
# create new (empty) log files after rotating old ones
|
||||
create
|
||||
|
||||
# use date as a suffix of the rotated file
|
||||
dateext
|
||||
|
||||
# uncomment this if you want your log files compressed
|
||||
compress
|
||||
|
||||
# packages drop log rotation information into this directory
|
||||
include /etc/logrotate.d
|
||||
|
||||
# system-specific logs may also be configured here.
|
@ -1,7 +0,0 @@
|
||||
# no packages own btmp -- we'll rotate it here
|
||||
/var/log/btmp {
|
||||
missingok
|
||||
monthly
|
||||
create 0660 root utmp
|
||||
rotate 1
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
# no packages own wtmp -- we'll rotate it here
|
||||
/var/log/wtmp {
|
||||
missingok
|
||||
monthly
|
||||
create 0664 root utmp
|
||||
minsize 1M
|
||||
rotate 1
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
---
|
||||
# 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_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
|
||||
- dest: '/etc/logrotate.d/btmp'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
|
||||
- dest: '/etc/logrotate.d/wtmp'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
|
@ -1,29 +0,0 @@
|
||||
---
|
||||
# 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_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
|
||||
- dest: '/etc/logrotate.d/btmp'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
|
||||
- dest: '/etc/logrotate.d/wtmp'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
|
Loading…
x
Reference in New Issue
Block a user