Chapter 2. Installing Red Hat Ansible Inside
You can install the following Red Hat Ansible Inside components using the Red Hat Subscription Manager (RHSM). Alternatively, you can download them from the Red Hat Registry.
- Ansible Core (installed via RHSM)
- Ansible Executor (runner) (installed via RHSM)
- Ansible Navigator (installed via RHSM)
- Ansible Builder (installed via RHSM)
- Ansible SDK (installed via RHSM)
- Ansible Execution Environment (Downloaded via Red Hat Registry)
You can install all the RHSM components as All-In-One or Individually.
2.1. Prerequisites Copy linkLink copied to clipboard!
Ansible Inside requires a valid subscription to an Ansible Inside SKU and enablement of the corresponding Red Hat Subscription Manager (RHSM) repository.
Contact Red Hat customer support or Red Hat sales for purchasing or attaching an Ansible Inside subscription.
After a valid Ansible Inside subscription has been attached to your organization within Red Hat Subscription Manager, you can enable the required repository as follows:
- RHEL 8
sudo subscription-manager repos --enable=ansible-inside-1.2-for-rhel-8-x86_64-rpms
sudo subscription-manager repos --enable=ansible-inside-1.2-for-rhel-8-x86_64-rpms
- RHEL 9
sudo subscription-manager repos --enable=ansible-inside-1.2-for-rhel-9-x86_64-rpms
sudo subscription-manager repos --enable=ansible-inside-1.2-for-rhel-9-x86_64-rpms
After the repository is enabled, you can proceed with installing the Ansible components.
2.2. Installing with Red Hat Subscription Manager (RHSM) Copy linkLink copied to clipboard!
2.2.1. All-In-One RHSM Copy linkLink copied to clipboard!
To install all the components in one go, run the following command:
- RHEL 8
sudo dnf install ansible-navigator ansible-core ansible-builder ansible-runner python39-ansible-sdk
sudo dnf install ansible-navigator ansible-core ansible-builder ansible-runner python39-ansible-sdk
- RHEL 9
sudo dnf install ansible-navigator ansible-core ansible-builder ansible-runner python3-ansible-sdk
sudo dnf install ansible-navigator ansible-core ansible-builder ansible-runner python3-ansible-sdk
2.2.2. Individual RHSM Copy linkLink copied to clipboard!
You can install only the required components for your needs individually using the following commands:
Ansible Core
sudo dnf install ansible-core
sudo dnf install ansible-core
Ansible Builder
sudo dnf install ansible-builder
sudo dnf install ansible-builder
Ansible Runner
sudo dnf install ansible-runner
sudo dnf install ansible-runner
Ansible Navigator
sudo dnf install ansible-navigator
sudo dnf install ansible-navigator
Ansible SDK
- RHEL 8
sudo dnf install python39-ansible-sdk
sudo dnf install python39-ansible-sdk
- RHEL 9
sudo dnf install python3-ansible-sdk
sudo dnf install python3-ansible-sdk
2.3. Download from the Red Hat Registry Copy linkLink copied to clipboard!
Ansible Execution Environments are used in Ansible Inside as either a baseline to execute your Ansible automation with, or can be used with Ansible Builder to provide extended automation compatibility to suit your needs.
The Red Hat supported execution environments available are:
- compatibility execution environment (ansible-automation-platform-24/ee-29-rhel8)
- ee-29 contains ansible 2.9, for compatibility with playbooks and content written for previous versions of Ansible Automation Platform.
- minimal execution environment (ansible-automation-platform-24/ee-minimal-rhel8)
- ee-minimal is an automation execution environment for Red Hat Ansible Automation Platform. ee-minimal contains ansible-core 2.15.
- supported execution environment (ansible-automation-platform-24/ee-supported-rhel8)
- ee-supported is an automation execution environment for use with Red Hat Ansible Automation Platform. ee-supported contains ansible-core 2.15 and automation content collections supported by Red Hat.
Example of pull for an image
All the images can be pulled using Podman and other means. The following example uses Podman pull.
Refer to catalog.redhat.com for other installation methods available.