new utils 3

This commit is contained in:
un-oeil 2026-10-11 23:23:23 +02:00
parent 31f6bfedf9
commit 7d9ca062d9

View file

@ -49,6 +49,8 @@
ansible.builtin.systemd_service: ansible.builtin.systemd_service:
name: chrony name: chrony
state: restarted state: restarted
# In a dry run chrony may not be installed yet (VM 107 had timesyncd).
ignore_errors: "{{ ansible_check_mode }}"
tasks: tasks:
# ---------------------------------------------------------------- apt # ---------------------------------------------------------------- apt
@ -165,6 +167,15 @@
tags: [time] tags: [time]
# ------------------------------------------------------- journald, disk # ------------------------------------------------------- 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 - name: Cap the journal size
ansible.builtin.copy: ansible.builtin.copy:
dest: /etc/systemd/journald.conf.d/size.conf dest: /etc/systemd/journald.conf.d/size.conf