I have a list of IP's that I've put into a file called servers.txt. These boxes all have the same root password for testing this.
Then I was going to run something like:
file = servers.txt
for i in $file
ssh $i -i identityfile.txt
##run commands here
Would that work for this type of exercise or have I missed something?