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.
This commit is contained in:
Alan Orth 2020-04-25 15:57:02 +03:00
parent 6fcb1290fe
commit ef6ce2335e
1 changed files with 0 additions and 10 deletions

View File

@ -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'