1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-14 03:55:37 +00:00
community.general/plugins
patchback[bot] 5bb9c6c805
[PR #12067/f677c2ab backport][stable-13] counter_enabled callback: display output for looped tasks (#12241)
counter_enabled callback: display output for looped tasks (#12067)

* fix(counter_enabled): display output for looped tasks with delegate_to

Implement v2_runner_item_on_ok, v2_runner_item_on_failed, and
v2_runner_item_on_skipped so that looped tasks (including those
using delegate_to: localhost) produce visible output.

Also extract _host_label, _display_result_ok, _display_result_failed,
and _display_result_skipped helpers to eliminate repeated delegation
and message-building logic across the callback methods.

Fixes #8187



* changelog(counter_enabled): add fragment for PR #12067



* test(counter_enabled): add integration tests, adjust _host_label



* test(counter_enabled): migrate integration tests to callback test framework



* test(counter_enabled): fix integration tests to use set_fact instead of debug



---------


(cherry picked from commit f677c2ab7d)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:33:53 +02:00
..
action
become
cache
callback [PR #12067/f677c2ab backport][stable-13] counter_enabled callback: display output for looped tasks (#12241) 2026-06-13 17:33:53 +02:00
connection [PR #12163/f9d4f0ad backport][stable-13] Fix incus Windows modules with ansible-core 2.21 (#12179) 2026-06-02 21:18:49 +02:00
doc_fragments [PR #11752/d4031f36 backport][stable-13] kopia: Add kopia_repository module (#12127) 2026-05-30 15:12:10 +02:00
filter [PR #12167/97b464de backport][stable-13] version_sort filter: fix example's description (#12171) 2026-06-02 21:18:37 +02:00
inventory [PR #12094/cbc6f6ee backport][stable-13] multiple: replace namedtuple with dataclass (#12102) 2026-05-25 15:59:50 +02:00
lookup [PR #12140/48db8630 backport][stable-13] filetree lookup: handle invalid exclude regex with AnsibleError (#12184) 2026-06-04 06:28:33 +02:00
module_utils [PR #12215/4d72ec32 backport][stable-13] xenserver_guest_info: use fallback chain for VDI format detection (#12230) 2026-06-12 23:46:27 +02:00
modules [PR #12151/994b7560 backport][stable-13] java_cert: fix PKCS12 password not passed to keytool -list (#12243) 2026-06-13 17:33:42 +02:00
plugin_utils
test