Syslog

If you ship the log files from your hosts, then you may want to send the results of the playbook run to your hosts syslog so that it is shipped to your central logging service:

- name: Send a message to the hosts syslog  syslogger:    msg: "The task has completed and all is well"    priority: "info"    facility: "daemon"    log_pid: "true"

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.