# change max size of journalctl logs - name: "Set max size" become: true ansible.builtin.lineinfile: path: /etc/systemd/journald.conf regexp: 'SystemMaxUse=' line: "SystemMaxUse={{ mylimbo_journald_system_max_use }}" notify: - restart service # change max size of journalctl max file size - name: "Set max file size" become: true ansible.builtin.lineinfile: path: /etc/systemd/journald.conf regexp: 'SystemMaxFileSize=' line: "SystemMaxFileSize={{ mylimbo_journald_system_max_file_size }}" notify: - restart service