There are differences between the VyOS documentation (syslog) and the Ansible documentation for the corresponding module (vyos.vyos.vyos_logging_global). The parameters listed there apparently do not work with v1.5. It appears to be designed for the parameters of v1.4.
When I try to configure the following:
set system syslog local facility all level 'info'
set system syslog local facility local7 level 'debug'
-> Ansible:
- name: Apply the provided configuration vyos.vyos.vyos_logging_global: config: files: # Not "local"
- path: /var/log/messages # ? facilities:
- facility: all severity: info
- facility: local7 severity: debug
- path: /var/log/messages # ? facilities:
It doesn't work because the module turns it into set system syslog file /var/log/messages facility all level info?
TASK [vyos : Configure syslog] ******************************************************
fatal: [sonny.vyos.eu-west-par-b.ovh.invers.systems]: FAILED! => {"changed": false, "module_stderr": "set system syslog file /var/log/messages facility all level info\r\n\r\n Configuration path: system syslog [file] is not valid\r\n Set failed\r\n\r\n[edit]\r\r\nbastian.albrecht@sonny.vyos.eu-west-par-b.ovh.invers.systems# ", "module_stdout": "", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error"}
However, the documentation of the ansible module states that it is tested with v1.5. I couldn't find anything about this on vyos.dev.