Merge "Ensure systemd-journal-remote.socket service is started"

This commit is contained in:
Zuul 2019-05-19 09:45:39 +00:00 committed by Gerrit Code Review
commit 66bfbec2a0
1 changed files with 8 additions and 0 deletions

View File

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