I have written playbooks to manage 100s of machines and i am using callback
plugins to capture the output of each task and generate reports at the end.
Since I am using forks (eg. 20) do i have to handle each output in thread
safe manner?
eg:
class CallbackModule(CallbackBase):
def __init__(self):
output = []
def v2_runner_on_ok(self, result, **kwargs):
with self.lock:
# capture output
def v2_playbook_on_stats(self, stats):
# generate report
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-devel/a7426076-0a34-4952-bb65-e37805a78535n%40googlegroups.com.