Extra playbooks
This commit is contained in:
parent
a445ff89e6
commit
9f575b24d5
2 changed files with 26 additions and 0 deletions
12
compress-logrotate.yml
Normal file
12
compress-logrotate.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
- 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
|
14
journald-size.yml
Normal file
14
journald-size.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
- hosts: all
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: Update journald conf
|
||||||
|
lineinfile:
|
||||||
|
regexp: "^.*SystemMaxUse.*$"
|
||||||
|
line: SystemMaxUse=500M
|
||||||
|
path: /etc/systemd/journald.conf
|
||||||
|
notify: restart journald
|
||||||
|
handlers:
|
||||||
|
- name: restart journald
|
||||||
|
service:
|
||||||
|
name: systemd-journald
|
||||||
|
state: restarted
|
Loading…
Reference in a new issue