new utils 3
This commit is contained in:
parent
31f6bfedf9
commit
7d9ca062d9
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue