ansible 检查大量客户端的文件与配置情况

ansible pro_adservers -m command -a 'w'

 

ansible pro_adservers -m command -a 'hostname'

 

ansible pro_adservers -m command -a 'ifconfig'

 

ansible pro_adservers -m command -a 'cat /etc/rc.local'

 

ansible pro_adservers -m command -a 'cat /root/.ssh/authorized_keys'

 

ansible pro_adservers -m command -a 'ls /data/socket'

posted @ 2018-01-25 14:46  Oops!#  阅读(270)  评论(0编辑  收藏  举报