标签:ansible
ansible -i vm.host 192.168.34.57 -m copy -a "src=/usr/scripts/scan_port.py dest=/tmp/"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执行脚本连接操作
标签:ansible
原文地址:http://blog.51cto.com/13630582/2083741