New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug - wrong task name with handlers #82307
Comments
Files identified in the description: None If these files are incorrect, please update the |
I was able to reproduce the issue. I will note that I also tested against my POC branch reworking some of the internals ( |
Hi, Could it be related to this method : in the default callback module? With debugger I can see that the cached value is different that the task name :
From what I see and when I run python debugger the Play_Iterator _get_next_task_from_state method seems to return a well formed task with the right name and host. |
Fixes ansible#82307 (cherry picked from commit a3cdd83)
Fixes ansible#82307 (cherry picked from commit a3cdd83)
Summary
I could produce a bug with the following playbook and inventory :
When the playbook is run (
ansible-playbook -i inventory.yaml playbook.yml
) :I get the result :
We can observe that the the task
5_debug
on hostfails
is wrongly named:4_handler_2
.This playbook was run with python 3.11.6 and ansible version :
Issue Type
Bug Report
Component Name
handlers
Ansible Version
Configuration
CONFIG_FILE() = None
OS / Environment
Macos 14.1.1 (23B81)
Steps to Reproduce
Playbook
Inventory file :
Expected Results
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: