Ensure systemd-journal-remote.socket service is started
This service is not enabled or started by default. Change-Id: If83bf779ba4cf3b23863f86a206aa90256b1a3fc Closes-Bug: 1821174
This commit is contained in:
parent
8492e93c1f
commit
590c86bc10
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user