上QQ阅读APP看书,第一时间看更新
Installing via Yum
If you are running a Fedora system, you can install Ansible directly, since from Fedora 22, Ansible 2.0+ is available in the official repositories. You can install it as follows:
$ sudo dnf install ansible
For RHEL and RHEL-based (CentOS, Scientific Linux, and Unbreakable Linux) systems, versions 6 and 7 have Ansible 2.0+ available in the EPEL repository, so you should ensure that you have the EPEL repository enabled before installing Ansible as follows:
$ sudo yum install ansible
On RHEL 6, you have to run the $ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm command to install EPEL, while on RHEL 7, $ sudo yum install epel-release is enough.