Logging
Ansible Logging
Configure Callback Settings
[defaults]
stdout_callback=community.general.yaml
callbacks_enabled=ansible.posix.profile_tasks, ansible.posix.timer Logging to separate file for each host
[defaults]
inventory=./csvinv.yaml
ansible_host_checking=False
# Still log in to one common file
log_path=./ansible_log.txt
# Need to install plugin using: ansible-galaxy collection community.general
callbacks_enabled=ansible.posix.profile_tasks,community.general.log_plays
[callback_log_plays]
# logs folder will be created
log_folder=logsReference
Last updated