diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-04 11:20:03 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-04 11:20:03 +0200 |
commit | c182c4dc6694ee6e7f49cfa91f5d02ea306c072d (patch) | |
tree | 82a8889418a1d64312db4e76080dd14014ff70f0 /roles/journald/tasks | |
parent | initial commit (diff) | |
download | infra-ansible-c182c4dc6694ee6e7f49cfa91f5d02ea306c072d.tar.gz infra-ansible-c182c4dc6694ee6e7f49cfa91f5d02ea306c072d.zip |
import some common roles
Diffstat (limited to '')
-rw-r--r-- | roles/journald/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
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 |