community / community.general / 0.1.1 / module / syslogger Log messages in the syslog Authors: Tim Rightnour (@garbled1) preview | supported by communitycommunity.general.syslogger (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Uses syslog to add log entries to the host.
Can specify facility and priority.
# Full example - name: Test syslog syslogger: msg: "Hello from ansible" priority: "err" facility: "daemon" log_pid: true
# Basic usage - name: Simple Usage syslogger: msg: "I will end up as daemon.info"
msg: description: - This is the message to place in syslog required: true log_pid: default: 'no' description: - Log the pid in brackets required: false type: bool facility: choices: - kern - user - mail - daemon - auth - lpr - news - uucp - cron - syslog - local0 - local1 - local2 - local3 - local4 - local5 - local6 - local7 default: daemon description: - Set the log facility required: false priority: choices: - emerg - alert - crit - err - warning - notice - info - debug default: info description: - Set the log priority required: false