Ansible: Install Ansible Package on Control Node
Ubuntu builds are available in a PPA here.
To configure the PPA on your machine and install ansible run these commands:
sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
Debian users may leverage the same source as the Ubuntu PPA.
Add the following line to /etc/apt/sources.list
:
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
Then run these commands:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
sudo apt update
sudo apt install ansible
The preferred way to install Ansible on a Mac is via pip.
The instructions can be found in Latest Releases via Pip section. If you are running macOS version 10.12 or older, then you should upgrade to the latest pip to connect to the Python Package Index securely.
As an alternative, you can install Ansible via Homebrew: brew install ansible
. However, as stated in the official Ansible documentation, the latest version of Ansible will be available via Pip.
Ansible is available in the Community repository:
pacman -Sy ansible
On Fedora:
sudo dnf install ansible
On RHEL and CentOS:
sudo yum install ansible
RPMs for RHEL 7 and RHEL 8 are available from the Ansible Engine repository.
To enable the Ansible Engine repository for RHEL 8, run the following command:
sudo subscription-manager repos --enable ansible-2.8-for-rhel-8-x86_64-rpms
To enable the Ansible Engine repository for RHEL 7, run the following command:
sudo subscription-manager repos --enable rhel-7-server-ansible-2.8-rpms
RPMs for currently supported versions of RHEL, CentOS, and Fedora are available from EPEL as well as releases.ansible.com.
Ansible version 2.4 and later can manage earlier operating systems that contain Python 2.6 or higher.
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.
git clone https://github.com/ansible/ansible.git
cd ./ansible
make rpm
sudo rpm -Uvh ./rpm-build/ansible-*.noarch.rpm