tech:notes_ansible_-_callback_plugins
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:notes_ansible_-_callback_plugins [2025/05/31 22:10] – Jean-Baptiste | tech:notes_ansible_-_callback_plugins [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes Ansible - callback plugins | ||
| + | |||
| + | `ansible/ | ||
| + | |||
| + | `ansible.cfg` | ||
| + | ~~~ini | ||
| + | [defaults] | ||
| + | |||
| + | # change the default callback, you can only have one ' | ||
| + | # | ||
| + | stdout_callback = kafka_logger | ||
| + | |||
| + | # Callback pluging activated for / | ||
| + | bin_ansible_callbacks = true | ||
| + | |||
| + | # enable callback plugins, they can output to stdout but cannot be ' | ||
| + | # | ||
| + | callback_whitelist = timer, mail | ||
| + | |||
| + | # callback plugin path | ||
| + | # cp -p / | ||
| + | callback_plugins | ||
| + | |||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | ansible-doc -t callback -l | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
