--- - name: Forward journald to syslog community.general.ini_file: path: /etc/systemd/journald.conf section: Journal option: ForwardToSyslog value: "yes" owner: root group: root mode: "0644" notify: restart journald - name: Compress journald logs community.general.ini_file: path: /etc/systemd/journald.conf section: Journal option: Compress value: "yes" owner: root group: root mode: "0644" notify: restart journald - name: Ensure logs are wrote to persistent disk community.general.ini_file: path: /etc/systemd/journald.conf section: Journal option: Storage value: persistent owner: root group: root mode: "0644" notify: restart journald