March 2019
Intermediate to advanced
412 pages
9h 49m
English
When Ansible operates on a host, it will attempt to log the action to syslog (if verbosity level three or more is used). If this action is being done by a user with appropriate rights, it will cause a message to appear in the syslog file of the host. This message includes the module name and the arguments passed along to that command, which could include your secrets. To prevent this from happening, a play and task key exists, named no_log. Setting no_log to true will prevent Ansible from logging the action to syslog.
Ansible can also be instructed to log its actions locally. This is controlled either through log_path in the Ansible config file, or through an environment variable called ANSIBLE_LOG_PATH ...
Read now
Unlock full access