Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1261017

Bug#1114932: ansible-core: Play tags prevents executing role handlers in ansible-core 2.19

From Helmut Grohne <helmut@subdivi.de>
Newsgroups linux.debian.bugs.dist
Subject Bug#1114932: ansible-core: Play tags prevents executing role handlers in ansible-core 2.19
Date 2025-09-11 21:00 +0200
Message-ID <LtUGt-eA0e-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Package: ansible-core
Version: 2.19.0-1
Severity: important
Tags: patch upstream
Forwarded: https://github.com/ansible/ansible/issues/85475

Hi Lee,

at Freexian, we ran into a surprising behaviour change of ansible. When
you enable play tags, handlers may no longer be run as expected while
they used to be run in earlier ansible version. This has been reported
upstream and is being discussed there inconclusively thus far.

If we look into the documentation at
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_tags.html,
it clearly says

| Adding tags to handlers
|
| Handlers are a special case of tasks that only execute when notified, as such they ignore all tags and cannot be selected for nor against.

Practically speaking, this no longer documents implemented behaviour in
ansible-core >= 2.19. A role tag can now prevent an implicit
flush_handlers from being invoked and therefore handlers may be skipped
this way.

The referenced (but not merged yet) MR
https://github.com/ansible/ansible/pull/85805 practically enables
handlers to be run again.

What do you think about this issue? Do you consider the changed
semantics intentional? Missing handler execution is something that can
go unnoticed. Playbooks appear to work but their effect may not have
been taken.

Helmut

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1114932: ansible-core: Play tags prevents executing role handlers in ansible-core 2.19 Helmut Grohne <helmut@subdivi.de> - 2025-09-11 21:00 +0200
  Bug#1114932: ansible-core: Play tags prevents executing role handlers in ansible-core 2.19 Helmut Grohne <helmut@subdivi.de> - 2025-11-05 12:10 +0100

csiph-web