From c182c4dc6694ee6e7f49cfa91f5d02ea306c072d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 4 Aug 2023 11:20:03 +0200 Subject: import some common roles --- roles/journald/tasks/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 roles/journald/tasks/main.yml (limited to 'roles/journald') diff --git a/roles/journald/tasks/main.yml b/roles/journald/tasks/main.yml new file mode 100644 index 0000000..2d7ce15 --- /dev/null +++ b/roles/journald/tasks/main.yml @@ -0,0 +1,17 @@ +- name: Less noisy journal + become: true + block: + - name: Edit journald.conf + community.general.ini_file: + dest: /etc/systemd/journald.conf + section: Journal + option: MaxLevelStore + value: notice + register: edited + + - name: Restart systemd-journald + ansible.builtin.systemd_service: + daemon_reload: true + name: systemd-journald + state: restarted + when: edited.changed -- cgit v1.2.3