How do I install ansible?
-
To install ansible keep this link handy along side this article http://docs.ansible.com/ansible/intro_installation.html
For Redhat
Install the EPEL repo, Extra Packages for Enterprise Linux$ sudo yum install wget $ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm $ sudo yum install epel-release-latest-7.noarch.rpm
Install ansible
$ sudo yum install ansible $ ansible --version
Additional Information
Ansible is a Redhat company.There is a blog on installation, which show how to install using the source code as well. https://developers.redhat.com/blog/2016/08/15/install-ansible-on-rhel/
-
To install the latest version of ansible, this should not be used for production but for testing features and scripts.
Enable the testing repo temporarily to install latest versions of software.
# yum install ansible --enablerepo=epel-testing
-
@giraffelife Also the following way using pip
$ sudo easy_install pip $ sudo pip install ansible
© Lightnetics 2024