8000 GitHub - zbrode/ansbak
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zbrode/ansbak

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ansbak

ansbak coalesces ansible -m shell output. If two machines return identical output, you only see it once. This is similar to dshbak for pdsh or clush --dshbak from clustershell.

Without ansbak:

$ ansible host1:host2 -m shell -a 'echo foo\\nbar'
host1 | success | rc=0 >>
foo
bar

host2 | success | rc=0 >>
foo
bar

With ansbak:

$ ansible host1:host2 -m shell -a 'echo foo\\nbar'  | ansbak.py
['host1', 'host2'] | success | rc=0 >>
foo
bar

Todo

  • Color-code output (like ansible already does) or document how to force ansible to print with color
  • Group hostnames more intelligently, e.g., "host1-3" instead of "host1, host2, host3"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0