syslogd: Don't run sync for every write in all.log
This commit is contained in:
parent
a0f7145f9c
commit
10f47b45e0
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@
|
||||||
- name: Enable all.log
|
- name: Enable all.log
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/syslog.conf
|
path: /etc/syslog.conf
|
||||||
line: "*.* /var/log/all.log"
|
line: "*.* -/var/log/all.log"
|
||||||
|
regexp: '^\*\.\*\s.*\/var\/log\/all\.log'
|
||||||
notify: Restart syslogd
|
notify: Restart syslogd
|
||||||
|
|
||||||
- name: Enable all.log rotation
|
- name: Enable all.log rotation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue