How to install ansible in yum
This article will explain in detail how to install ansible for yum, Xiaobian thinks it is very practical, so share it with you for a reference, I hope you can gain something after reading this article.
OS version:
[root@iz2zecm5evly3vhbie5ik4z ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
view data source
[root@oraclerac1 ~]# cd /etc/yum.repos.d/[root@oraclerac1 yum.repos.d]# ls -ltrtotal 8-rw-r--r-- 1 root root 230 Jul 23 11:22 epel.repo-rw-r--r-- 1 root root 675 Jul 23 11:22 CentOS-Base.repo
If there is no epel data source, install it as follows
rpm -Uvh ftp://bo.mirror.garr.it/1/slc/centos/7.0.1406/extras/x86_64/Packages/epel-release-7-5.noarch.rpm
installation
yum install ansibel
view version
root@iz2zecm5evly3vhbie5ik4z ~]# ansible --versionansible 2.6.2 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] About "yum how to install ansible" This article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.