问题遇到的现象和发生背景
在使用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