Created
June 28, 2018 04:35
-
-
Save smurugap/298f1bc3f287a8cb23d522c5b61e7e15 to your computer and use it in GitHub Desktop.
ansible command line to exec command on multiple hosts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ansible all -i 10.0.0.5,10.0.0.6,10.0.0.7,10.0.0.8,10.0.0.9 -m shell -e 'ansible_ssh_pass=c0ntrail123' -a 'uname -a' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment