Cleanup logrotate configuration #41
1 changed files with 1 additions and 7 deletions
|
@ -1,9 +1,7 @@
|
||||||
---
|
---
|
||||||
# Install the apt package
|
|
||||||
- name: Install logrotate
|
- name: Install logrotate
|
||||||
apt:
|
apt:
|
||||||
name:
|
name: logrotate
|
||||||
- logrotate
|
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create rsyslog configuration directory
|
- name: Create rsyslog configuration directory
|
||||||
|
@ -27,8 +25,4 @@
|
||||||
name: logrotate.service
|
name: logrotate.service
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
# Enforce new logrotate rules now
|
|
||||||
- name: Run logrotate now
|
|
||||||
command: /usr/sbin/logrotate -f /etc/logrotate.d/rsyslog
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue