13 lines
310 B
YAML
13 lines
310 B
YAML
|
- hosts: all
|
||
|
become: true
|
||
|
tasks:
|
||
|
- name: decomment compress option in logrotate
|
||
|
lineinfile:
|
||
|
path: /etc/logrotate.conf
|
||
|
regexp: "^#compress"
|
||
|
line: "compress"
|
||
|
notify: force rotation
|
||
|
handlers:
|
||
|
- name: force rotation
|
||
|
command: logrotate -f /etc/logrotate.conf
|