add playbook: add forward syslog
This commit is contained in:
1 parent
0ec0cec7a4
commit
76e2bc55f2
1 file changed
+3
-3
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
name: Add forward to syslog
|
- name: Add forward to syslog
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user