ansible_failed_task
references loop variables that are not available in rescue
#74369
Labels
affects_2.10
This issue/PR affects Ansible v2.10
bug
This issue/PR relates to a bug.
python3
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Summary
It is my understanding that the bug #57399 references a problem when using a loop with
include_role
, however in that very same thread, a different bug is reported and it was not fixed in the PR #73881 and therefore still fails inansible==3.3.0
andansible-base==2.10.8
.Issue Type
Bug Report
Component Name
ansible
Ansible Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
Debian 10 (buster)
Steps to Reproduce
Here is the example code from #57399
In this example, the task
Set error info report
, insiderescue
fails becauseansible_failed_task
has a variable calleditem
which is not defined insiderescue
but was in the failed task (LOOP TASK
)Expected Results
It should rescue properly and continue executions
Actual Results
The text was updated successfully, but these errors were encountered: