robertdebock / ansible-role-rsyslog

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

Add variables to setup default rules #21

Closed smutel closed 3 years ago

smutel commented 3 years ago

name: Pull request about: Add variables to setup default rules


Describe the change Currently if you set the variable rsyslog_deploy_default_config to no, the default file is not deployed. In the template you have a condition {% if rsyslog_deploy_default_config %} which is never true. So I replaced in the template by a new variables called rsyslog_default_rules containing the rules.

Testing Deployed with the default values and with a variable rsyslog_default_rules containing some new default rules.

robertdebock commented 3 years ago

That's a great contribution, much better than it was, thanks!