Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 660 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 660 Bytes

runonall

Who needs ansible?

setup

  • ssh keys between your hosts
  • commands.txt with the commands you want to run on each host
  • hosts.txt with all the hosts you want to run commands on

run

[you@hostname627 runonall]$ ./runonall.sh hosts.txt commands.txt

output

hostname452:
hostname:
hostname452
grep findme /etc/some/file.properties:
yep findme is on this line

hostname453:
hostname:
hostname453
grep findme /etc/some/file.properties:
findme is here on this host
findme is also here
can't run from findme

hostname475:
(and on and on for each host...)