1分钟
31 Callbacks-Examples
Example callbacks are shown in lib/ansible/plugins/callback.
The log_plays callback is an example of how to intercept playbook events to a log file, and the mailcallback sends email when playbooks complete.
The osx_say callback provided is particularly entertaining – it will respond with computer synthesized speech on OS X in relation to playbook events, and is guaranteed to entertain and/or annoy coworkers.
学员评价