-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
v2: KeyError while looking up role of a handler in the role cache #12882
Comments
Steps to Reproduce Define two roles and a playbook:
- name: do stuff for role a
command: echo 'stuff for a'
notify: unrelated
- name: unrelated
command: echo 'unrelated handler'
- name: restart collectd
command: echo 'service collectd restart'
- name: do stuff for role b
command: echo stuff for b
notify: restart collectd
- name: restart collectd
command: echo 'service collectd restart'
- hosts: localhost
gather_facts: no
roles:
- a
- hosts: localhost
gather_facts: no
roles:
- b Now run Expected Result
Actual Result
|
git bisect blames commit a3e913d |
Closing This TicketHi! We believe the above commit should resolve this problem for you. This will also be included in the next major release. If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved. Thank you! |
I apologize for not having time to produce a good quality bug report. I'll come back later and polish it.
My test playbook fails with this Ansible version (it worked a couple of days ago). The error is:
I have two handlers with that name, in different roles:
My playbook includes all of the roles (including common, eversheds, and, as the last one, roundup).
Reproduction of this bug takes 15 minutes at the moment, and I haven't had the time to try and produce a smaller reproductor.
The text was updated successfully, but these errors were encountered: