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.3-for-rhel-8-x86_64-rpms
sudo subscription-manager repos --enable=ansible-inside-1.3-for-rhel-8-x86_64-rpms
- RHEL 9
sudo subscription-manager repos --enable=ansible-inside-1.3-for-rhel-9-x86_64-rpms
sudo subscription-manager repos --enable=ansible-inside-1.3-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!
You can install all the components at once, or you can install only the components you need.
2.2.1. Installing all-in-one with 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-sdkCopy to Clipboard Copied! Toggle word wrap Toggle overflow 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-sdkCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.2.2. Installing individual components with 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-coreCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ansible Builder:
sudo dnf install ansible-builder
sudo dnf install ansible-builderCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ansible Runner:
sudo dnf install ansible-runner
sudo dnf install ansible-runnerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ansible Navigator:
sudo dnf install ansible-navigator
sudo dnf install ansible-navigatorCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ansible SDK:
RHEL 8:
sudo dnf install python39-ansible-sdk
sudo dnf install python39-ansible-sdkCopy to Clipboard Copied! Toggle word wrap Toggle overflow RHEL 9:
sudo dnf install python3-ansible-sdk
sudo dnf install python3-ansible-sdkCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3. Downloading execution environments from the Red Hat Registry Copy linkLink copied to clipboard!
Automation 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.
2.3.1. RHEL 9 execution environments Copy linkLink copied to clipboard!
The following Red Hat supported execution environments are available for RHEL 9:
- compatibility execution environment (
ansible-automation-platform-24/ee-216-rhel9) -
ee-216contains ansible 2.16 for compatibility with playbooks and content written for previous versions of Red Hat Ansible Automation Platform. - minimal execution environment
ansible-automation-platform-24/ee-minimal-rhel9) -
ee-minimalis an automation execution environment for Red Hat Ansible Automation Platform.ee-minimalcontains ansible-core 2.16. - supported execution environment (
ansible-automation-platform-24/ee-supported-rhel9) -
ee-supportedis an automation execution environment for use with Red Hat Ansible Automation Platform.ee-supportedcontains ansible-core 2.16 and automation content collections supported by Red Hat.
2.3.2. RHEL 8 execution environments Copy linkLink copied to clipboard!
The following Red Hat supported execution environments are available for RHEL 8:
- compatibility execution environment (
ansible-automation-platform-24/ee-216-rhel8) -
ee-216contains ansible 2.16 for compatibility with playbooks and content written for previous versions of Red Hat Ansible Automation Platform. - minimal execution environment
ansible-automation-platform-24/ee-minimal-rhel8) -
ee-minimalis an automation execution environment for Red Hat Ansible Automation Platform.ee-minimalcontains ansible-core 2.15. - supported execution environment (
ansible-automation-platform-24/ee-supported-rhel8) -
ee-supportedis an automation execution environment for use with Red Hat Ansible Automation Platform.ee-supportedcontains ansible-core 2.15 and automation content collections supported by Red Hat.
2.3.3. Pulling an execution environment from the Red Hat registry Copy linkLink copied to clipboard!
You can pull execution environment images from the Red Hat registry using a container engine such as Podman. The following procedure uses podman pull. Refer to catalog.redhat.com for other installation methods available.
Log in to the Red Hat registry.
podman login registry.redhat.io Username: {REGISTRY-SERVICE-ACCOUNT-USERNAME} Password: {REGISTRY-SERVICE-ACCOUNT-PASSWORD} Login Succeeded!$ podman login registry.redhat.io Username: {REGISTRY-SERVICE-ACCOUNT-USERNAME} Password: {REGISTRY-SERVICE-ACCOUNT-PASSWORD} Login Succeeded!Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following command to pull an execution environment.
podman pull registry.redhat.io/ansible-automation-platform/<execution-env-name>
$ podman pull registry.redhat.io/ansible-automation-platform/<execution-env-name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<execution-env-name>with the execution environment that you want to use.For example, the following command pulls a RHEL8 minimal execution environment:
podman pull registry.redhat.io/ansible-automation-platform/ee-minimal-rhel8:2.16.9-2
$ podman pull registry.redhat.io/ansible-automation-platform/ee-minimal-rhel8:2.16.9-2Copy to Clipboard Copied! Toggle word wrap Toggle overflow