1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-27 06:33:25 +00:00
community.general/plugins/callback
patchback[bot] d100f4b8fd
[PR #12067/f677c2ab backport][stable-12] counter_enabled callback: display output for looped tasks (#12240)
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:50 +02:00
..
cgroup_memory_recap.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
context_demo.py Reformat everything. 2025-11-01 13:46:53 +01:00
counter_enabled.py [PR #12067/f677c2ab backport][stable-12] counter_enabled callback: display output for looped tasks (#12240) 2026-06-13 17:33:50 +02:00
default_without_diff.py Reformat everything. 2025-11-01 13:46:53 +01:00
dense.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
diy.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
elastic.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
jabber.py Reformat everything. 2025-11-01 13:46:53 +01:00
log_plays.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
loganalytics.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
loganalytics_ingestion.py [PR #11567/9b72d954 backport][stable-12] Add missing __future__ imports (#11569) 2026-03-11 07:10:34 +01:00
logdna.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
logentries.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
logstash.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
mail.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
nrdp.py Reformat everything. 2025-11-01 13:46:53 +01:00
null.py Reformat everything. 2025-11-01 13:46:53 +01:00
opentelemetry.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
print_task.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
say.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
selective.py [PR #12065/2f83a5b0 backport][stable-12] selective callback plugin: align host names in stats output (#12071) 2026-05-17 11:09:29 +02:00
slack.py Reformat everything. 2025-11-01 13:46:53 +01:00
splunk.py [PR #11485/cb91ff42 backport][stable-12] Fix: avoid deprecated callback. (#11531) 2026-02-23 06:17:28 +01:00
sumologic.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
syslog_json.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
tasks_only.py Reformat everything. 2025-11-01 13:46:53 +01:00
timestamp.py [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
unixy.py [PR #12113/ef5b22d1 backport][stable-12] unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12142) 2026-05-30 20:29:37 +02:00