�
�Udac @` s� d Z d d l m Z m Z m Z e Z d d l m Z d d l
m Z d d l m
Z
m Z d d l m Z d d l m Z d Z d e f d
� � YZ d S( sV
Counter enabled Ansible callback plugin (See DOCUMENTATION for more information)
i ( t absolute_importt divisiont print_function( t constants( t CallbackBase( t colorizet hostcolor( t Templar( t TaskIncludesa
callback: counter_enabled
type: stdout
short_description: adds counters to the output items (tasks and hosts/task)
version_added: "2.7"
description:
- 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.
extends_documentation_fragment:
- default_callback
requirements:
- set as stdout callback in ansible.cfg (stdout_callback = counter_enabled)
t CallbackModulec B` s� e Z d Z d Z d Z d Z d Z d Z d Z d Z d � Z
d d d � Z d � Z
d � Z d
� Z d � Z d � Z e d
� Z d � Z d � Z RS( s�
This is the default callback interface, which simply prints messages
to stdout when new callback events are received.
g @t stdoutt counter_enabledi i c C` s) t t | � j � d | _ d | _ d S( Nt ( t superR t __init__t _playbookt _play( t self( ( sL /usr/lib/python2.7/site-packages/ansible/plugins/callback/counter_enabled.pyR / s c C` s( | j j � j d | j d | d | � S( Nt playt hostt task( R t get_variable_managert get_vars( R R R ( ( sL /usr/lib/python2.7/site-packages/ansible/plugins/callback/counter_enabled.pyt _all_vars5 s c C` s
| | _ d S( N( R ( R t playbook( ( sL /usr/lib/python2.7/site-packages/ansible/plugins/callback/counter_enabled.pyt v2_playbook_on_start>