From 0a7668e96e23c3911617e62ec86e2210e8dd0c2a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 11 Aug 2023 09:16:50 +0200 Subject: journald: parametrize the log level --- roles/journald/defaults/main.yml | 1 + roles/journald/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 roles/journald/defaults/main.yml (limited to 'roles') diff --git a/roles/journald/defaults/main.yml b/roles/journald/defaults/main.yml new file mode 100644 index 0000000..28c8d5f --- /dev/null +++ b/roles/journald/defaults/main.yml @@ -0,0 +1 @@ +journald_log_level: warning diff --git a/roles/journald/tasks/main.yml b/roles/journald/tasks/main.yml index 12c1152..8602829 100644 --- a/roles/journald/tasks/main.yml +++ b/roles/journald/tasks/main.yml @@ -6,7 +6,7 @@ dest: /etc/systemd/journald.conf section: Journal option: MaxLevelStore - value: warning + value: '{{ journald_log_level }}' register: edited - name: Restart systemd-journald -- cgit v1.2.3