I have recently been alerted to the existence of ansible callbacks, which appear to be a way to modify some of the defaults under given conditions.
However, I have scoured the ansible documentation as well as a few books, google and the source code, but for the life of me I cannot find the answer to this simple question:
How does one change the configuration items that affect the beahavior of ansible callbacks?
-E.g: the mail callback appears, looking at the code, to be able to be configured to send mail to a configurable email address through a configurable SMTP host. How/where/when should these be specified?
But, if the mail callback (and the base class for callbacks), are anything to go by, there actually appears to be NO standard configuration mechanism..
Mail, for instance, gets SMTPHOST from an environment variable if it's there, and to: appears nailed to <root> (no good if the mailer insists on email@example.com as valid addresses).