diff --git a/playbooks/utils.yml b/playbooks/utils.yml index 50b6d1f..7a7ae8c 100644 --- a/playbooks/utils.yml +++ b/playbooks/utils.yml @@ -49,6 +49,8 @@ ansible.builtin.systemd_service: name: chrony state: restarted + # In a dry run chrony may not be installed yet (VM 107 had timesyncd). + ignore_errors: "{{ ansible_check_mode }}" tasks: # ---------------------------------------------------------------- apt @@ -165,6 +167,15 @@ tags: [time] # ------------------------------------------------------- journald, disk + - name: Create /etc/systemd/journald.conf.d + ansible.builtin.file: + path: /etc/systemd/journald.conf.d + state: directory + owner: root + group: root + mode: "0755" + tags: [journald] + - name: Cap the journal size ansible.builtin.copy: dest: /etc/systemd/journald.conf.d/size.conf