Skip to content

feat(plugin:dashboard): show the progress and ETA of the play, count ok results per host - #753

Merged
markuslf merged 1 commit into
mainfrom
feat/dashboard-progress
Nov 16, 2026
Merged

markuslf merged 1 commit into
mainfrom
feat/dashboard-progress

Conversation

@markuslf

Copy link
Copy Markdown
Member

The linuxfabrik.lfops.dashboard stdout callback shows the progress of the play and how the hosts are doing.

  • A progress bar below the task line: step 140/421 (33%) ETA 00:15:12. It counts the tasks of the play that are known when it starts, after --tags / --skip-tags. An include_tasks / include_role is one step, handlers and rescue sections are not counted. The ETA extrapolates the average time per finished step.
  • The task counter shows ok 13/22/35: ok results, hosts still at work on the task, hosts. It replaces the separate pending counter.
  • The counter columns of Task and Run are aligned to the widest value, so a five-digit run total no longer runs into the next label.
  • The host list gets an O column with the ok results per host, and LAST is renamed to LAST WORST.

Verified with ansible-core 2.16, 2.18 and 2.22: unit tests, plus a run with include_tasks, include_role, when: false, block / rescue / always, a handler and --tags.

🤖 Generated with Claude Code

…ok results per host

The progress bar numbers the tasks the way the PlayIterator sees them:
play.compile() with the tags filter applied, without meta tasks (they never
fire v2_playbook_on_task_start) and without rescue sections. A task of an
include_tasks or include_role is found through its parents, which lead to the
include, so the include is one step. Verified against ansible-core 2.16, 2.18
and 2.22.

The task counter shows "ok 13/22/35" (ok results, hosts still at work, hosts)
instead of a separate pending counter. The counter columns are aligned to the
widest value, so large run totals no longer run into the next label. The host
list gets an O column, and LAST is renamed to LAST WORST.
@markuslf
markuslf merged commit acd46f4 into main Nov 16, 2026
15 checks passed
@markuslf
markuslf deleted the feat/dashboard-progress branch November 16, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant