Skip to content

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

Notifications You must be signed in to change notification settings

ozamodaz/ansible-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

  • Working thru the '--limit' option when inventory file submitted makes all your group variables in place (if any)
  • For now, not checking for 'hosts: group' in playbook, reading all hosts from inventory file

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages