无法在 RHEL 7 上运行 ansible - 未安装 Paramiko [英] Cannot run ansible on RHEL 7 - Paramiko is not installed

查看:69
本文介绍了无法在 RHEL 7 上运行 ansible - 未安装 Paramiko的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台运行 RHEL 7 的服务器,我已经安装了 ansible,但无法运行 playbook,错误提示未安装 paramiko.我已经验证了 paramiko 已安装,并尝试使用 pip 安装 paramiko 但仍然无法正常工作.

<预><代码>任务【显示连接】**********************************************************************************************************************************************************致命:[ASA]:失败!=>{"msg": "paramiko 未安装:没有名为 paramiko 的模块"}

以下是我拥有的版本:

sh-4.2$ sudo yum install ansible包 ansible-2.8.5-2.el7ae.noarch 已经安装和最新版本sh-4.2$ 须藤 yum 安装 python-paramiko包 python-paramiko-2.1.1-9.el7.noarch 已经安装和最新版本sh-4.2$

解决方案

我已经解决了这个问题.除了已经添加的 rhel-7-server-ansible-2.8-rpms 之外,我们还必须添加 rhel-7-server-extras-rpms 并执行 yum remove ansible 和 yum install ansible.

I have a server running RHEL 7, and I have installed ansible but cannot run a playbook with error saying paramiko is not installed. I have verified that paramiko is installed and also tried to install paramiko using pip but still does not work.


TASK [Show the Connection] **************************************************************************************************************************************************
fatal: [ASA]: FAILED! => {"msg": "paramiko is not installed: No module named paramiko"}

Below are the versions I have:

sh-4.2$ sudo yum install ansible
Package ansible-2.8.5-2.el7ae.noarch already installed and latest version
sh-4.2$ sudo yum install python-paramiko
Package python-paramiko-2.1.1-9.el7.noarch already installed and latest version
sh-4.2$ 

解决方案

I already resolved this issue. We had to add the rhel-7-server-extras-rpms in addition to the already added rhel-7-server-ansible-2.8-rpms and do a yum remove ansible and yum install ansible.

这篇关于无法在 RHEL 7 上运行 ansible - 未安装 Paramiko的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆