Ansible

Before installing Ansible, it is recommended you review the Ansible for IBM Z collections requirements to align the Ansible version to a supported version.

For Ansible for IBM Z requirements, review the topic software requirements.

If you prefer watching videos, you can follow the steps discussed in the guide, Set up your Ansible control node for getting started with Ansible for IBM Z.

Prerequisites

After you have decided on an Ansible version, ensure the required version of Python is installed on the control node. You can review which version of Python is required by reviewing the ansible-core support matrix.

Procedures

Ansible’s community packages are distributed in two ways: ansible or ansible-core. To find out which package to use, see Selecting an Ansible package and version to install.

You can install Ansible with pipx or pip:

Additionally, you can install Ansible to containers or upgrade the Ansible version. For detailed information, see Install Ansible and select the appropriate option.

Verify installation

After you installed Ansible on the control node, ensure the installation is successful.

If you have installed ansible-core, you can test this by checking the version with command:

ansible --version

If you have installed ansible, you can test this by checking the version with command:

ansible-community --version

To learn more about configuration, see Confirm your installation.

Test installation

After you have verified the installation, you can run a simple Ansible adhoc command utilizing the ansible.builtin.ping module module to test the installation.

ansible localhost -m ansible.builtin.ping