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/callback
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
..
cgroup_memory_recap.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
context_demo.py Reformat everything. 2025-11-01 13:46:53 +01:00
counter_enabled.py [PR #12067/f677c2ab backport][stable-13] counter_enabled callback: display output for looped tasks (#12241) 2026-06-13 17:33:53 +02:00
default_without_diff.py Reformat everything. 2025-11-01 13:46:53 +01:00
dense.py Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
diy.py Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
elastic.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
jabber.py Reformat everything. 2025-11-01 13:46:53 +01:00
log_plays.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
loganalytics.py Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
loganalytics_ingestion.py Add missing __future__ imports (#11567) 2026-03-11 06:42:08 +01:00
logdna.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
logentries.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
logstash.py Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
mail.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +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 Start opentelemetry spans on host start instead of task start (#11434) 2026-05-17 11:28:15 +02:00
print_task.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
say.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
selective.py selective callback plugin: align host names in stats output (#12065) 2026-05-17 10:38:33 +02:00
slack.py Reformat everything. 2025-11-01 13:46:53 +01:00
splunk.py Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
sumologic.py Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
syslog_json.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
tasks_only.py Reformat everything. 2025-11-01 13:46:53 +01:00
timestamp.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
unixy.py [PR #12113/ef5b22d1 backport][stable-13] unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12143) 2026-05-30 20:29:46 +02:00