Hacker News new | ask | show | jobs
by scarby2 2430 days ago
this is good for a few servers - but its sequential nature will become onerous if for example you needed to run something that took 10 minutes on 100 hosts.

ansible ad-hoc commands do almost exactly what you do but in a more scalable fashion

https://docs.ansible.com/ansible/latest/user_guide/intro_adh...

1 comments

<list_of_hosts xargs -I {} -P 0 -n 1 ssh {} hostname
Here's a more polished version of just this idea: https://github.com/michaelkarlcoleman/ssssh