From 590c86bc1010eae78a5df7ede26eb8dca0bf20a5 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 30 Apr 2019 05:12:04 -0600 Subject: [PATCH] Ensure systemd-journal-remote.socket service is started This service is not enabled or started by default. Change-Id: If83bf779ba4cf3b23863f86a206aa90256b1a3fc Closes-Bug: 1821174 --- playbooks/infra-journal-remote.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/infra-journal-remote.yml b/playbooks/infra-journal-remote.yml index 60b7808c6c..c24966e66c 100644 --- a/playbooks/infra-journal-remote.yml +++ b/playbooks/infra-journal-remote.yml @@ -41,6 +41,14 @@ name: "{{ systemd_journal_remote_distro_package[ansible_pkg_mgr] }}" state: "{{ package_state }}" + - name: Ensure systemd-journal-remote socket is enabled on receiving host + systemd: + name: systemd-journal-remote.socket + enabled: yes + state: started + when: + - (ansible_host == systemd_journal_remote_target) + - name: Create journal directory file: path: "/var/log/journal"