diff --git a/rsyslog_forward.yml b/rsyslog_forward.yml index bf4407c..c0191d7 100644 --- a/rsyslog_forward.yml +++ b/rsyslog_forward.yml @@ -1,8 +1,8 @@ -name: Add forward to syslog -hosts: all -tasks: - - 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 +- name: Add forward to syslog + hosts: all + tasks: + - 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 - - name: Restart rsyslog.service - shell: systemctl restart rsyslog.service \ No newline at end of file + - name: Restart rsyslog.service + shell: systemctl restart rsyslog.service \ No newline at end of file