【发布时间】:2020-08-25 09:21:46
【问题描述】:
我们有没有网络访问的 rhel linux 机器
我们想在那台机器上安装 ansible
但我们想从二进制文件安装 ansible(不像 pip/yum install ),因为我们想避免任何 pip 依赖问题
有什么相关的方法吗?
传统方式的示例
Step 1: Update your Control Node
Any time you are installing new software, it is a good idea to ensure your existing operating system software is up to date. Let’s start with that task first.
yum update
Step 2: Install the EPEL Repository
Installing Ansible is pretty straightforward. First, we’ll need to install the CentOS 7 EPEL repository.
yum install epel-release
Step 3: Install Ansible
Next, we install the Ansible package from the EPEL repository.
yum install ansible
【问题讨论】:
-
不清楚您所说的“来自二进制文件”是什么意思。 Ansible 基于 Python,没有二进制 Ansible AFAIK 这样的东西。您可以通过 yum、pip 安装,或者,您可以使用它设置一个 virtualenv,然后转移到非网络服务器。
-
或者至少是通过 pip/yum 离线安装它的更好方法
标签: linux pip ansible yum rhel