robertdebock / ansible-role-rsyslog

Install and configure rsyslog on your system.
https://robertdebock.nl/
Apache License 2.0
36 stars 40 forks source link

Only set $OmitLocalLogging if immuxsock is loaded #12

Closed chancez closed 2 years ago

chancez commented 3 years ago

name: Only set $OmitLocalLogging if immuxsock is loaded about: This an error when immuxsock is not loaded


Describe the change Fixes this error when immuxsock is not loaded:

invalid or yet-unknown config file command 'OmitLocalLogging'

This configuration matches the logic in the advanced template.

Testing I ran the role with a playbook with the following variables:

rsyslog_config_file_format: legacy
rsyslog_mods:
  - immark