robertdebock / ansible-role-rsyslog

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

wrong $WorkDirectory in ubuntu #7

Closed pescobar closed 4 years ago

pescobar commented 4 years ago

Describe the bug

ubuntu18.04 uses $WorkDirectory /var/spool/rsyslog but this role deploys $WorkDirectory /var/lib/rsyslog .

folder /var/spool/rsyslog doesn't exists at all in ubuntu

Output

when doing systemctl status rsyslog you get this error message:

$WorkDirectory: /var/lib/rsyslog can not be accessed, probably does not exist - directive ignored

robertdebock commented 4 years ago

Great issue report, thanks!

After applying a fix image=ubuntu tag=bionic molecule test --destroy=never shows:

root@rsyslog-ubuntu-bionic:/# cat /etc/rsyslog.conf |grep -i work   
$WorkDirectory /var/spool/rsyslog

I'll push and release the fixes any moment.