-
Notifications
You must be signed in to change notification settings - Fork 378
Closed
Labels
needs_triageNew item that needs to be triagedNew item that needs to be triaged
Description
it'd be useful to have a simple progress indicator when running long playbooks via the python API. right now when you call ansible_runner.run() in a script there's no feedback until it's done — looks like the program hung.
doesn't need to be fancy, just something like a callback option that gets invoked periodically with current task info. could be as simple as:
def progress(event, **kwargs):
if event == 'task_start':
print(f"running: {kwargs['task']}")
r = ansible_runner.run(
private_data_dir='...',
playbook='site.yml',
progress_callback=progress
)the event stream already has this data, just need a way to hook into it without having to implement a full custom callback plugin.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs_triageNew item that needs to be triagedNew item that needs to be triaged