远程拷贝
ansible web-server -m copy -a "dest=/tmp/Hello.class src=/opt/Hello.class owner=root group=root mode=0644"
远程执行命令
ansible web-server -m command -a "rm -rf /tmp/Hello.java"
远程目录文件信息查看
ansible web-server -m command -a "ls -al /tmp/CentOS6-Base-163.repo"