Closed dagwieers closed 6 years ago
3 things:
ansible_run_tags
and ansible_skip_tags
to reflect such optionsself._options
, when using CallbackBase
Thanks @bcoca
@bcoca I couldn't find this in the Ansible documentation, maybe I wasn't looking right. Do you know where this is documented ?
Proposal: export-tags
Author: Dag Wieers <@dagwieers> IRC: dag
Date: 2018-05-14
Motivation
The provided tags can influence how the playbook behaves or is executed. As a result it is useful to have this information available.
Problems
We send out mails on failure (callback plugin) and send out a mail after successful execution of a complex playbook (mail module), but both do not report exactly with what tags the playbook was executed while this is a crucial part of understanding what has happened.
Exposing this information to the playbook makes it possible to report this information as part of the mail body together with other relevant information.
Solution proposal
ansible_tags
Testing (optional)
Tests are not optional
Documentation (optional)
Documentation is not optional.