update..
This commit is contained in:
parent
53074fa930
commit
3ecd0e3644
@ -74,6 +74,22 @@ copy_plain_files_systemd:
|
||||
dest_path: /etc/systemd/system.conf.d/20-DefaultLimitRTTIME.conf
|
||||
|
||||
|
||||
#copy_plain_files_journald: []
|
||||
copy_plain_files_journald:
|
||||
|
||||
- name: SystemMaxUse
|
||||
src_path: etc/systemd/journald.conf.d/50-SystemMaxUse.conf
|
||||
dest_path: /etc/systemd/journald.conf.d/50-SystemMaxUse.conf
|
||||
|
||||
- name: SystemMaxFileSize
|
||||
src_path: etc/systemd/journald.conf.d/50-SystemMaxFileSize.conf
|
||||
dest_path: /etc/systemd/journald.conf.d/50-SystemMaxFileSize.conf
|
||||
|
||||
- name: MaxFileSec
|
||||
src_path: etc/systemd/journald.conf.d/50-MaxFileSec.conf
|
||||
dest_path: /etc/systemd/journald.conf.d/50-MaxFileSec.conf
|
||||
|
||||
|
||||
|
||||
#copy_plain_files_sysctl: []
|
||||
copy_plain_files_sysctl:
|
||||
|
1
hosts
1
hosts
@ -153,7 +153,6 @@ mm-irights.oopen.de
|
||||
o25.oopen.de
|
||||
cl-fm.oopen.de
|
||||
mail.faire-mobilitaet.de
|
||||
meet.faire-mobilitaet.de
|
||||
|
||||
# Hetzner Cloud CX31 - AK
|
||||
o26.oopen.de
|
||||
|
@ -0,0 +1,4 @@
|
||||
# Custom Values overrides '/etc/systemd/journald.conf'
|
||||
#
|
||||
[Journal]
|
||||
MaxFileSec=2day
|
@ -0,0 +1,4 @@
|
||||
# Custom Values overrides '/etc/systemd/journald.conf'
|
||||
#
|
||||
[Journal]
|
||||
SystemMaxFileSize=10M
|
@ -0,0 +1,4 @@
|
||||
# Custom Values overrides '/etc/systemd/journald.conf'
|
||||
#
|
||||
[Journal]
|
||||
SystemMaxUse=100M
|
@ -48,3 +48,9 @@
|
||||
shell: smbcontrol all reload-config
|
||||
when:
|
||||
- inventory_hostname in groups['samba_server']
|
||||
|
||||
- name: Restart systemd-journald
|
||||
service:
|
||||
name: systemd-journald
|
||||
state: restarted
|
||||
|
||||
|
@ -60,6 +60,36 @@
|
||||
tags:
|
||||
- systemd-config
|
||||
|
||||
- name: (basic.yml) Ensure directory '/etc/systemd/journald.conf.d' exists
|
||||
file:
|
||||
path: /etc/systemd/journald.conf.d
|
||||
state: directory
|
||||
mode: 0755
|
||||
group: root
|
||||
owner: root
|
||||
when:
|
||||
- copy_plain_files_journald is defined
|
||||
- copy_plain_files_journald|length > 0
|
||||
tags:
|
||||
- systemd-config
|
||||
|
||||
- name: (basic.yml) Ensure files /etc/systemd/journald.conf.d/*.conf exists
|
||||
copy:
|
||||
src: '{{ item.src_path }}'
|
||||
dest: '{{ item.dest_path }}'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
loop: "{{ copy_plain_files_journald }}"
|
||||
loop_control:
|
||||
label: 'dest: {{ item.name }}'
|
||||
notify: "Restart systemd-journald"
|
||||
when:
|
||||
- copy_plain_files_journald is defined
|
||||
- copy_plain_files_journald|length > 0
|
||||
tags:
|
||||
- systemd-config
|
||||
|
||||
|
||||
# ----------
|
||||
# kernel parameter
|
||||
|
Loading…
Reference in New Issue
Block a user