ansible使用ping命令出现报错
ssh connection type with passwords, you must install the sshpass program

# ubuntu
sudu apt install -y sshpass
#centos
yum install -y sshpass
在尝试使用Ansible的ping模块时遇到ssh连接错误,提示需要sshpass程序。对于Ubuntu用户,可以使用sudo apt install -y sshpass命令安装;而对于CentOS用户,则需运行yum install -y sshpass进行安装。确保正确安装sshpass以解决SSH连接问题。
ansible使用ping命令出现报错
ssh connection type with passwords, you must install the sshpass program

# ubuntu
sudu apt install -y sshpass
#centos
yum install -y sshpass
6133

被折叠的 条评论
为什么被折叠?