-
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 (8.4, 8.6, 8.7, 9.0, 9.1) have
6.3.0
- SLES 12 SP5 has
2.8.1
- SLES 15 SP3 has
2.9.21
- SLES 15 SP4 has
2.9.27
- Ubuntu 18.04 has
2.5.1
- Ubuntu 20.04 has
2.9.6
- Ubuntu 22.04 has
2.10.8
- Ubuntu 22.10 has
5.5.0
Note: For Ubuntu (20.04, 22.04, 22.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.4, 8.6, 8.7, 9.0, 9.1)
- SLES (12 SP5, 15 SP3, 15 SP4)
- 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(v7.1.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 export LANG="en_US.UTF-8" export LC_ALL=en_US.UTF-8
-
RHEL (8.4, 8.6, 8.7)
sudo yum install -y python39-devel gcc libffi-devel openssl-devel
-
RHEL (9.0, 9.1)
sudo yum install -y python3-devel.s390x gcc libffi-devel openssl-devel
-
SLES 12 SP5
sudo zypper install -y libffi48-devel openssl-devel gcc make gzip glibc-locale export LANG="en_US.UTF-8" export LC_ALL=en_US.UTF-8
-
SLES (15 SP3, 15 SP4)
sudo zypper install -y gcc libffi-devel make openssl-devel wget glibc-locale export LANG="en_US.UTF-8" export LC_ALL=en_US.UTF-8
-
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 Ubuntu
Note: 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.