counter_enabled – adds counters to the output items (tasks and hosts/task)¶
New in version 2.7.
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 master node that executes this callback.
set as stdout callback in ansible.cfg (stdout_callback = counter_enabled)
Parameters¶
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
display_failed_stderr
boolean
added in 2.7 |
|
ini entries:
[defaults] env:ANSIBLE_DISPLAY_FAILED_STDERR
|
Toggle to control whether failed and unreachable tasks are displayed to STDERR (vs. STDOUT)
|
display_ok_hosts
boolean
added in 2.7 |
|
ini entries:
[defaults] env:ANSIBLE_DISPLAY_OK_HOSTS
|
Toggle to control displaying 'ok' task/host results in a task
|
display_skipped_hosts
boolean
|
|
ini entries:
[defaults] env:DISPLAY_SKIPPED_HOSTS
env:ANSIBLE_DISPLAY_SKIPPED_HOSTS
|
Toggle to control displaying skipped task/host results in a task
|
show_custom_stats
boolean
|
|
ini entries:
[defaults] env:ANSIBLE_SHOW_CUSTOM_STATS
|
This adds the custom stats set via the set_stats plugin to the play recap
|
Status¶
This callback is not guaranteed to have a backwards compatible interface. [preview]
This callback is maintained by the Ansible Community. [community]