For When You Can't Have The Real Thing
[ start | index | login ]
start > ansible > 2.5 > execute command on hosts

execute command on hosts

Created by dave. Last edited by dave, 4 years and 36 days ago. Viewed 1,287 times. #2
[diff] [history] [edit] [rdf]

Execute a command on hosts

$ ansible all -u root -a "ls /home"

"all" can be a group or hostname.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt