我们有没有网络访问权限的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
答案 0 :(得分:0)
也许并不理想,但是您可以从源头上运行。我这样做已经好几年了,没有任何问题。我只是将初始化例程放在我的.bashrc
文件中,因此它随时可以使用。
Running Ansible from source (devel)
一旦您从可以访问互联网的计算机上的git中拉出,就可以将其潜入您想要的计算机上。
答案 1 :(得分:0)
如官方documentation中所述,您可以使用官方发行版中可用的rpm。由于您没有Internet访问权限,因此您必须将其下载到其他位置并将其复制到控制节点。
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。 在github和Ansible releases
中都可用