From 7d9ca062d95d67e1f5a0298ebd5a26bbfeb2ff6d Mon Sep 17 00:00:00 2001 From: un-oeil Date: Sun, 11 Oct 2026 23:23:23 +0200 Subject: [PATCH] new utils 3 --- playbooks/utils.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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