add playbook: add forward syslog

This commit is contained in:
2026-05-08 15:50:13 +02:00
parent 76e2bc55f2
commit 92ecbeb6db
+1 -1
View File
@@ -2,7 +2,7 @@
hosts: all hosts: all
tasks: tasks:
- name: Create 99-forward.conf - name: Create 99-forward.conf
shell: echo "*.* action(type="omfwd" target="192.168.10.221" port="514" protocol="tcp" Template="RSYSLOG_SyslogProtocol23Format" TCP_Framing="octet-counted" KeepAlive="on")" > /etc/rsyslog.d/99-forward.conf shell: echo "*.* action(type=\"omfwd\" target=\"192.168.10.221\" port=\"514\" protocol=\"tcp\" Template=\"RSYSLOG_SyslogProtocol23Format\" TCP_Framing=\"octet-counted\" KeepAlive=\"on\")" > /etc/rsyslog.d/99-forward.conf
- name: Restart rsyslog.service - name: Restart rsyslog.service
shell: systemctl restart rsyslog.service shell: systemctl restart rsyslog.service