ansible / proposals

Repository for sharing and tracking progress on enhancement proposals for Ansible.
Creative Commons Zero v1.0 Universal
93 stars 19 forks source link

Expose command-line tags to the playbook #114

Closed dagwieers closed 6 years ago

dagwieers commented 6 years ago

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

Testing (optional)

Tests are not optional

Documentation (optional)

Documentation is not optional.

bcoca commented 6 years ago

3 things:

dagwieers commented 6 years ago

Thanks @bcoca

dagwieers commented 6 years ago

@bcoca I couldn't find this in the Ansible documentation, maybe I wasn't looking right. Do you know where this is documented ?