38 lines
915 B
YAML
38 lines
915 B
YAML
---
|
|
- name: Installation de systemd-journal-remote
|
|
apt:
|
|
name: systemd-journal-remote
|
|
state: present
|
|
|
|
- name: Enable et start systemd-journal-remote.socket
|
|
systemd:
|
|
name: systemd-journal-remote.socket
|
|
enabled: yes
|
|
state: started
|
|
|
|
- name: Copie de systemd-journal-remote.service dans /etc/systemd/system
|
|
copy:
|
|
src: /lib/systemd/system/systemd-journal-remote.service
|
|
dest: /etc/systemd/system/systemd-journal-remote.service
|
|
remote_src: yes
|
|
backup: yes
|
|
|
|
|
|
- name: Modification de systemd-journal-remote.service
|
|
replace:
|
|
path: /etc/systemd/system/systemd-journal-remote.service
|
|
regexp: '--listen-https=-3'
|
|
replace: '--listen-http=-3'
|
|
|
|
- name: Creation /var/log/journal/remote directory
|
|
file:
|
|
path: /var/log/journal/remote
|
|
state: directory
|
|
owner: systemd-journal-remote
|
|
|
|
- name: Redemarrage de systemd
|
|
systemd:
|
|
daemon_reload: yes
|
|
notify:
|
|
- restart systemd
|