远程机配置文件
vim /etc/ansible/hosts
推送文件到远程机器
ansible all -m copy -a "src=./filterRds.sh dest=/data/xxx/filterRdsLink.sh"
运行远程文件或命令
ansible all -m shell -a 'bash /home/zhangjinliang/filterRdsLink.sh'
标签:文件,配置文件,sh,ansible,filterRdsLink,远程
From: https://blog.51cto.com/jinliang/6088786