Hello, I use "ansible -m shell" quite a bit. I would like ansible to not show me the output multiple times if it is identical on several machines. The dshbak tool for pdsh [0] and clush -b from clustershell [1] are examples of similar tools that behave in the desired way. I wrote a simple proof of concept for ansible at https://github.com/jrib/ansbak .
What happens now: > $ ansible host1:host2 -m shell -a 'echo foo\\nbar' > host1 | success | rc=0 >> > foo > bar > > host2 | success | rc=0 >> > foo > bar What I want to happen: > $ ansible host1:host2 -m shell -a 'echo foo\\nbar' | ansbak.py > ['host1', 'host2'] | success | rc=0 >> > foo > bar My questions are: 1. Does something like this already exist? 2. Is ansbak a good approach? What features should I add? 3. Would it be preferable to add this feature directly to ansible? (hints where welcomed) Thanks! Jason [0] https://code.google.com/p/pdsh/ [1] http://cea-hpc.github.io/clustershell/ -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
