This contains a lot of changes, including better system configuration for some issues discovered during testing, and minor tweaking for better user experience when doing maintenance
21 lines
436 B
YAML
21 lines
436 B
YAML
---
|
|
- name: Ensures journalctl dir exists
|
|
file:
|
|
path: /etc/systemd
|
|
state: directory
|
|
|
|
- name: Configure journalctl
|
|
copy:
|
|
src: ../templates/journald.conf
|
|
dest: /etc/systemd/journald.conf
|
|
backup: yes
|
|
register: journalctl_conf
|
|
|
|
- name: Restart journalctl service
|
|
ansible.builtin.systemd:
|
|
name: systemd-journald
|
|
state: restarted
|
|
daemon_reload: true
|
|
enabled: true
|
|
when: journalctl_conf.changed
|