|
|
|
@ -23,6 +23,7 @@ from collections import MutableMapping
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.utils.vars import merge_hash
|
|
|
|
from ansible.utils.vars import merge_hash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AggregateStats:
|
|
|
|
class AggregateStats:
|
|
|
|
''' holds stats about per-host activity during playbook runs '''
|
|
|
|
''' holds stats about per-host activity during playbook runs '''
|
|
|
|
|
|
|
|
|
|
|
|
@ -53,7 +54,7 @@ class AggregateStats:
|
|
|
|
failures=self.failures.get(host, 0),
|
|
|
|
failures=self.failures.get(host, 0),
|
|
|
|
unreachable=self.dark.get(host, 0),
|
|
|
|
unreachable=self.dark.get(host, 0),
|
|
|
|
changed=self.changed.get(host, 0),
|
|
|
|
changed=self.changed.get(host, 0),
|
|
|
|
skipped = self.skipped.get(host, 0)
|
|
|
|
skipped=self.skipped.get(host, 0),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def set_custom_stats(self, which, what, host=None):
|
|
|
|
def set_custom_stats(self, which, what, host=None):
|
|
|
|
@ -83,4 +84,3 @@ class AggregateStats:
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# let overloaded + take care of other types
|
|
|
|
# let overloaded + take care of other types
|
|
|
|
self.custom[host][which] += what
|
|
|
|
self.custom[host][which] += what
|
|
|
|
|
|
|
|
|
|
|
|
|