From ef6ce2335e56298e6cc42b602dad426c348e3f58 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 25 Apr 2020 15:57:02 +0300 Subject: [PATCH] roles/common: Remove systemd-journald drop-in Older Ubuntus originally didn't use a persistent journal, which was somewhat of a surprise when looking at logs after a few months. Now this does not seem to be an issue since Ubuntu 18.04. As for CentOS I do not use that distro here so I don't need to care. --- roles/common/tasks/main.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index e67c79d..e6181b5 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -31,16 +31,6 @@ import_tasks: sshd.yml tags: sshd -# this should work on CentOS 7+ and Ubuntu 16.04+ -- block: - - name: Create systemd-journald drop-in config directory - file: path=/etc/systemd/journald.conf.d owner=root group=root mode=0755 state=directory - - - name: Enable persistent systemd journal - copy: src=00-persistent-journal.conf dest=/etc/systemd/journald.conf.d/00-persistent-journal.conf owner=root group=root mode=0644 - when: ansible_service_mgr == 'systemd' - tags: systemd-journald - # containers identify as virtualization hosts, which makes this tricky, because we have actual Debian VM hosts! - name: Reconfigure /etc/sysctl.conf when: ansible_virtualization_role != 'host'