You've already forked ansible-role-rsyslog
Enable rsyslog server and default port
This commit is contained in:
@@ -66,6 +66,13 @@ Example Playbook
|
||||
- 'if $programname == "dovecot" and $syslogseverity <= "6" then ~'
|
||||
- '& ~'
|
||||
```
|
||||
3) Enable rsyslog server
|
||||
```
|
||||
- hosts: all
|
||||
|
||||
roles:
|
||||
- { role: ../../roles/ansible-rsyslog-custom, "rsyslog_server": yes }
|
||||
```
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
@@ -13,4 +13,6 @@ rsyslog_action_file_default_template: RSYSLOG_TraditionalFileFormat
|
||||
#rsyslog_priv_drop_to_group: syslog
|
||||
items: []
|
||||
rsyslog_default_config: "True"
|
||||
rsyslog_os_supported: no
|
||||
rsyslog_os_supported: no
|
||||
#rsyslog_server: no
|
||||
rsyslog_network_port: "514"
|
||||
|
||||
@@ -25,4 +25,9 @@ $PrivDropToUser {{ rsyslog_priv_drop_to_user }}
|
||||
$PrivDropToGroup {{ rsyslog_priv_drop_to_group }}
|
||||
{% endif %}
|
||||
|
||||
{% if rsyslog_server is defined %}
|
||||
$ModLoad imtcp
|
||||
$InputTCPServerRun {{ rsyslog_network_port }}
|
||||
{% endif %}
|
||||
|
||||
$IncludeConfig {{ rsyslog_include_path }}/*.conf
|
||||
|
||||
Reference in New Issue
Block a user