专业的编程技术博客社区

网站首页 > 博客文章 正文

Ansible 提示 sshpass 错误(ansible sudo pass)

baijin 2024-10-08 00:47:31 博客文章 6 ℃ 0 评论

错误的信息为:

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

来进行安装。

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

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表