-
Notifications
You must be signed in to change notification settings - Fork 56
Building Ansible
Below versions of Ansible are available in respective distributions at the time creation of these build instructions:
- RHEL (7.8, 7.9, 8.2, 8.4, 8.5) have
2.9.27 - SLES 12 SP5 has
2.8.1 - SLES 15 SP3 has
2.9.6 - Ubuntu 18.04 has
2.5.1 - Ubuntu 20.04 has
2.9.6 - Ubuntu 21.10 has
2.10.7
Note: For Ubuntu (20.04, 21.10), please refer to this link to install Ansible from the community Ansible PPA (ppa:ansible/ansible).
The instructions provided below specify the steps to build Ansible latest version on Linux on IBM Z for the following distributions:
- RHEL (7.8, 7.9, 8.2, 8.4, 8.5)
- SLES (12 SP5, 15 SP3)
- Ubuntu 18.04
General Notes:
-
When following the steps below please use a standard permission user unless otherwise specified.
-
A directory
/<source_root>/will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
Note: Ansible(v5.4.0) was verified at the time of creation of these instructions
-
RHEL (7.8, 7.9)
sudo yum install -y gcc libffi-devel openssl-devel
-
RHEL (8.2, 8.4, 8.5)
sudo yum install -y python39-devel gcc libffi-devel openssl-devel
-
SLES 12 SP5
sudo zypper install -y libffi48-devel openssl-devel gcc make gzip
-
SLES 15 SP3
sudo zypper install -y gcc libffi-devel make openssl-devel wget
-
Ubuntu 18.04
sudo apt-get update sudo apt-get install -y python3.8-dev python3.8 python3-markupsafe python3-pip gcc libffi-dev libssl-dev sudo ln -s /usr/bin/python3.8 /usr/bin/python python --version
-
Install Python version
3.10.x(RHEL 7.x, SLES)- Instructions for building Python 3.10.x can be found here
sudo pip3 install cryptography==3.3.2
sudo pip3 install ansible # For RHEL, SLES
sudo python -m pip install ansible # For UbuntuNote: In case of an error sudo: pip3: command not found on RHEL or SLES, run above command as sudo -H env PATH=$PATH pip3 install ... instead of sudo pip3 install ....
Follow the official guide given here to verify the installation.
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.