You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
James Cammarata 0656d1466a Adds two variables to facts when a task fails and a rescue block starts
`ansible_failed_task`:
   Contains the task data, essentially a serialized view of the Task() object.
`ansible_failed_result`:
   Contains the result of the task failure, which is identical in function
   to registering the result. Doing so automatically like this saves the user
   from having to register every result in a block and then trying to figure
   out which result had the failure

Similar to the way try/except/finally work, these variables will not be
available in the `always` portion of a block unless there is a corresponding
`rescue` first.

Fixes #12341
9 years ago
..
cli Add '--skip-tags' to ansible-pull 9 years ago
compat Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 9 years ago
config Making the switch to v2 10 years ago
errors Add options to make includes 'static' 9 years ago
executor Fix --start-at-task which was broken by the setup task revamp 9 years ago
galaxy Remove trailing whitespace from the galaxy init Jinja2 template. Default a description. 9 years ago
inventory Don't process the same host multiple times 9 years ago
module_utils Merge pull request #15200 from wimnat/feature/handle_lists_in_snake_dict_creation 9 years ago
modules Update submodule refs 9 years ago
new_inventory fix some warning of undefined name. 9 years ago
parsing Take previous jinja2 blocks into account in splitter when we see quotes 9 years ago
playbook centralize path list handling 9 years ago
plugins Adds two variables to facts when a task fails and a rescue block starts 9 years ago
template Merge pull request #14504 from bcoca/template_comments 9 years ago
utils Override params from environment variables, if set. 9 years ago
vars Merge pull request #14971 from bcoca/clear_facts 9 years ago
__init__.py Bump version in devel now that stable-2.0 has been branched 9 years ago
constants.py centralize path list handling 9 years ago
test-requirements.txt Making the switch to v2 10 years ago