3 ms·
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. an
by scarby2 7y 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_adhoc.html https://docs.ansible.com/ansible/latest/user_guide/intro_adh...
- reacweb 7y ago<list_of_hosts xargs -I {} -P 0 -n 1 ssh {} hostname
- downerending 7y agoHere's a more polished version of just this idea: https://github.com/michaelkarlcoleman/ssssh https://github.com/michaelkarlcoleman/ssssh