Ansible - Installation
- ansible-galaxy - client tool for Ansible Galaxy, can download roles
- ansible - community package with extra stuff, similar to original ansible
- ansible-core / ansible-base - just the core package
Needed Python versions:
- Python 3.8 for control node ( 2.11 )
- Python 2.6 or 3.5 for managed nodes
Also needed:
- libselinux-python if you have selinux
Use raw mode to install python:
ansible myhost --become -m raw -a "yum install -y python2"
Install using Pip:
pip install ansible
Install on Red Hat systems:
sudo dnf install ansible # Fedora
sudo yum install ansible # RHEL
Ubuntu installation:
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
Install on Arch Linux:
pacman -S ansible
Install Ansible core from github:
git clone https://github.com/ansible/ansible.git
cd ./ansible
source ./hacking/env-setup
source ./hacking/env-setup.fish