Enable rsyslog server and default port

This commit is contained in:
Cristian
2016-09-28 16:00:48 +02:00
parent 05d10208a1
commit e3857d610f
3 changed files with 15 additions and 1 deletions

View File

@@ -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
-------

View File

@@ -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"

View File

@@ -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