ozamodaz / ansible-async

Async wrapper that allows to play whole playbook independently on each host without waiting for a last finisher on each task
1 stars 0 forks source link

Ansible Async Wrapper

allows to play whole playbook independently on each host
without waiting for a last finisher on each task

=====================================

When executing same task on a lot of hosts with execution time that depends on each specific host in cluster you may consider to run these playbooks fully independently on each host, so you not obligated to wait last finishers on each task.

Note

Usage

$ python async.py -i /path/to/hosts_file playbook.yml
or
$ python async.py -i "host1.domain.name,host2.domain.name,..." playbook.yml

Options

max_workers = 10    ------->      max threads
log = True          ------->      log mode
logdir = '.log'     ------->      log path