community.general.counter_enabled callback – adds counters to the output items (tasks and hosts/task)
Note
This callback plugin is part of the community.general collection (version 4.8.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.counter_enabled
.
Synopsis
Use this callback when you need a kind of progress bar on a large environments.
You will know how many tasks has the playbook to run, and which one is actually running.
You will know how many hosts may run a task, and which of them is actually running.
Requirements
The below requirements are needed on the local controller node that executes this callback.
set as stdout callback in ansible.cfg (stdout_callback = counter_enabled)
Parameters
Parameter |
Comments |
---|---|
Toggle to control displaying markers when running in check mode. The markers are Choices:
Configuration:
|
|
Toggle to control whether failed and unreachable tasks are displayed to STDERR (vs. STDOUT) Choices:
Configuration:
|
|
Toggle to control displaying ‘ok’ task/host results in a task Choices:
Configuration:
|
|
Toggle to control displaying skipped task/host results in a task Choices:
Configuration:
|
|
This adds the custom stats set via the set_stats plugin to the play recap Choices:
Configuration:
|
|
This adds output that shows when a task is started to execute for each host Choices:
Configuration:
|
|
When a task fails, display the path to the file containing the failed task and the line number. This information is displayed automatically for every task when running with Choices:
Configuration:
|
Authors
Unknown
Hint
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication