1. ansible 10.0.0.1 -m raw -a "date" -u www
2.在ansible的主机配置文件中指定ssh_uservi/etc/ansible/hosts10.0.0.1 ansible_ssh_user=www
ansible test-hosts -m file -a "path=/root/fstab owner=root group=root mode=600"
https://www.cnblogs.com/trymybesttoimp/p/6223979.html