Skip to content
Snippets Groups Projects
Commit 38722922 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: write journald config to correct files

parent 9f0c9947
Branches
No related tags found
No related merge requests found
Pipeline #9668 passed
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
# Documentation: https://www.freedesktop.org/software/systemd/man/journald.conf.html # Documentation: https://www.freedesktop.org/software/systemd/man/journald.conf.html
- name: configure journald - name: configure journald
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: "/etc/systemd/journald.conf.d/persistence.conf" path: "/etc/systemd/journald.conf.d/{{ item.path }}"
owner: "root" owner: "root"
group: "root" group: "root"
mode: "0644" mode: "0644"
create: "true" create: "true"
state: present state: present
block: "{{ item.block }}"
loop: loop:
- path: "log_retention.conf" - path: "log_retention.conf"
block: | block: |
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
- name: persistentes Journalctl-Logging einrichten - name: persistentes Journalctl-Logging einrichten
ansible.builtin.import_tasks: "configure_persistent_journald_logging.yml" ansible.builtin.import_tasks: "configure_persistent_journald_logging.yml"
tags: [log] tags: [journal, journald, journals, journalctl, log, logs, logging, syslog]
- name: Needrestart installieren - name: Needrestart installieren
ansible.builtin.import_tasks: "install_needrestart.yml" ansible.builtin.import_tasks: "install_needrestart.yml"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment