在使用ansible的时候提示to use the 'ssh' connection type with passwords, you must install the sshpass program
ansible all -m shell -a "df -h
[root@localhost ansible]# ansible all -m shell -a "df -h"
192.166.22.153 | FAILED | rc=-1 >>
to use the 'ssh' connection type with passwords, you must install the sshpass program
网上都说是没有sshpass,但是实际我这个之前用是好好的,就是前几天突然不能用了。而且sshpass也是有的
[root@localhost ansible]# rpm -qa | grep sshpass
sshpass-1.06-2.el7.x86_64
是客户机返回的,没有sshpass吧