Hey guys,
How to access the playbook execution log file at run time? I would need to email it after running the playbook.
For example, a simple playbook:
Hey guys,
How to access the playbook execution log file at run time? I would need to email it after running the playbook.
For example, a simple playbook:
If you’re running Job Templates in AWX you might want to look into Notification Templates (https://ansible.readthedocs.io/projects/awx/en/latest/userguide/notifications.html), and specifically Email (https://ansible.readthedocs.io/projects/awx/en/latest/userguide/notifications.html#email)
You could also look into callback plugins (https://docs.ansible.com/ansible/latest/plugins/callback.html#example-callback-plugins)