从二进制文件离线安装离线

问题描述 投票:0回答:2

我们有没有网络访问权限的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
linux pip ansible yum rhel
2个回答
0
投票

也许不理想,但是您可以从源头上运行。我这样做已经好几年了,没有任何问题。我只是将初始化例程放在我的.bashrc文件中,因此随时可以使用。Running Ansible from source (devel)

一旦您从具有Internet访问权限的计算机上从git中拉出,就将其潜入您想要的计算机上。


0
投票

如官方documentation中所述,您可以使用官方发行版中提供的rpm。由于您没有互联网访问权限,因此您必须将其下载到其他位置并将其复制到控制节点。

RPMs for currently supported versions of RHEL, CentOS, and Fedora are available from EPEL as well as releases.ansible.com.

You can also build an RPM yourself. From the root of a checkout or tarball, use the make rpm command to build an RPM you can distribute and install

但是我不推荐Running Ansible from source (devel),因为正如文档中已经提到的那样,这可能是不稳定的。

Note

You should only run Ansible from devel if you are actively developing content for Ansible. This is a rapidly changing source of code and can become unstable at any point.

如果您想自行构建rpm,则可能应该使用tagged releases。在githubAnsible releases]中均可用

© www.soinside.com 2019 - 2024. All rights reserved.