1.ansible将文件复制到远程主机
ansible hostgroup -m copy -a "src=/data/ansible/roles/change_prod_marketing_conf/application-prod.properties dest=/data/home/services/xxx/conf/"
 
2.启动远程主机
ansible hostgroup -m shell -a "source /etc/profile && /data/home/services/xxx/bin/restart.sh"