Ansible 提示 sshpass 错误

153 阅读1分钟

错误的信息为:

AILED! => {"msg": "to use the 'ssh' connection type with passwords or pkcs11_provider, you must install the sshpass program"}

问题和原因

这是在运行 ansible 的服务器需要安装 sshpass 组件。

可以直接运行:

[root@devops ~]# dnf install sshpass

来进行安装。

2024-04-16_12-08-49

如上图所示,就可以解决 ansible 安装提示的错误。

www.isharkfly.com/t/ansible-s…