--- # ============================================================================ # journald retention # ============================================================================ - name: Ensure journald drop-in directory exists ansible.builtin.file: path: /etc/systemd/journald.conf.d state: directory owner: root group: root mode: "0755" - name: Deploy journald retention drop-in ansible.builtin.template: src: journald-retention.conf.j2 dest: /etc/systemd/journald.conf.d/10-mk-labs-retention.conf owner: root group: root mode: "0644" notify: Restart systemd-journald