Found a quick way to do the shell module that Seth was playing with, with out duplicating any module code.
With the latest source, try this:
ansible all -m shell -a “/bin/echo $ROOT”
Shell is not really a different module named command, but is the result of some magic in the code to make
it run the command module with some extra options behind the scenes.
Documentation pending but it works exactly the same, because it IS the same module. Output is also tailored
like the command module.
(The default for “-m” is still “command”. Maybe it should be shell? Yes? No?)
–Michael