Extra playbooks

This commit is contained in:
Cedric Girard 2019-03-25 11:40:20 +01:00
parent a445ff89e6
commit 9f575b24d5
2 changed files with 26 additions and 0 deletions

12
compress-logrotate.yml Normal file
View 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
View 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