In the process of working on some other scripts I hacked this up as a test of a pretty simple ansible script. It is more or less a duplicate of func-command.
http://fedorapeople.org/gitweb?p=skvidal/public_git/scripts.git;a=tree;f=ansible/ans-command
ans-command uptime
runs uptime on all the boxes in the default inventory.
ans-command --host="host1" --host="@groupspec" "uname -a"
runs uname -a on host1 and all the hosts matching the groupspec.
We use func-command daily in fedora infrastructure and this lets us migrate to using ansible w/o having to relearn syntax.
I've also updated host-reboot to work with the new inventory api
http://fedorapeople.org/gitweb?p=skvidal/public_git/scripts.git;a=tree;f=ansible/host-reboot
-sv