I recently had to make the same change on multiple web servers - all configured in the same way and running Ubuntu. My work colleague suggested me to use tool called ClusterSSH. According to documentation: "This tool is intended for (but not limited to) cluster administration where the same configuration or commands must be run on each node within the cluster. Performing these commands all at once via this tool ensures all nodes are kept in sync.".
I provide below steps how to install and configure this tool on Ubuntu 12.04LTS desktop.
- sudo apt-get update
- sudo apt-get install clustershh
Basic use of ClusterSSH: