Skip to content

Instantly share code, notes, and snippets.

@smurugap
Created June 28, 2018 04:35
Show Gist options
  • Select an option

  • Save smurugap/298f1bc3f287a8cb23d522c5b61e7e15 to your computer and use it in GitHub Desktop.

Select an option

Save smurugap/298f1bc3f287a8cb23d522c5b61e7e15 to your computer and use it in GitHub Desktop.
ansible command line to exec command on multiple hosts
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