ansible/ansible — pull request #5342 by chuggins (2013-12-19 03:10:55+00:00)
Title: Add progress output to batched playbook execution

One issue I have found with long playbook runs for rolling deployments is that it is not possible, viewing Ansible's output, to easily tell how far along the process is. This is particularly bad when deploying to hundreds of machines--with a conservative enough rate of serial execution, such a run can take hours. It would be a great help for me to see how many hosts have been processed.

This small change adds a simple additional output during playbook runs. It prints between playbook batches, excluding the last batch. Output looks as follows:

```
STATUS ************************************************************************
2 hosts processed of 3 total (66.67%)
```

In addition, this surfaces a potentially interesting new callback for plugin authors to take advantage of.

Let me know if this needs anything else to be considered for merging, or if I can make any changes to improve it.