ansible -i bnxy.host bnxy -m command -a "yum -y install lrzsz"
bnxy.host的bnxy模块的主机用命令command全部执行yum -y install lrzsz
ansible -i bnxy.host bnxy -m shell -a "cd /usr/jyinit/optinits;svn up ./"
bnxy.host的bnxy模块的主机用shell执行脚本连接操作
原文:http://blog.51cto.com/13630582/2083741