Add ability to use |success and |failed as Jinja2 filters.

Example:

when: registered_variable|failed