Install Ansible development tools from an RPM package

Ansible development tools are bundled in the Ansible Automation Platform RPM (Red Hat Package Manager) package. Refer to the RPM installation documentation for information on installing Ansible Automation Platform.

Before you begin

  • You have installed RHEL 8 or later.
  • You have registered your system with Red Hat Subscription Manager.
  • You have installed a containerization platform, for example Podman or Docker.

About this task

Procedure

  1. Run the following command to check whether Simple Content Access (SCA) is enabled:
    $ sudo subscription-manager status

    If Simple Content Access is enabled, the output contains the following message:

    Content Access Mode is set to Simple Content Access.
    1. If Simple Content Access is not enabled, attach the Red Hat Ansible Automation Platform SKU:
      $ sudo subscription-manager attach --pool=<sku-pool-id>
  2. Install Ansible development tools with the following command:
    $ sudo dnf install --enablerepo=ansible-automation-platform-2.6-for-rhel-8-x86_64-rpms ansible-dev-tools
    $ sudo dnf install --enablerepo=ansible-automation-platform-2.6-for-rhel-9-x86_64-rpms ansible-dev-tools
    $ sudo dnf install --enablerepo=ansible-automation-platform-2.6-for-rhel-10-x86_64-rpms ansible-dev-tools

Results

  1. Verify that the Ansible development tools components have been installed:
    $ rpm -aq | grep ansible
    ansible-collection-redhat-rhel_mgmt-1.1.0-2.el9.noarch
    ansible-collection-microsoft-sql-2.5.2-1.el9.noarch
    ansible-core-2.16.14-2.el9ap.noarch
    python3.11-ansible-compat-25.8.1-1.el9ap.noarch
    python3.11-ansible-runner-2.4.1-1.el9ap.noarch
    ansible-runner-2.4.1-1.el9ap.noarch
    ansible-builder-3.1.0-1.el9ap.noarch
    ansible-lint-25.8.2-1.el9ap.noarch
    ansible-navigator-25.8.0-1.el9ap.noarch
    ansible-sign-0.1.2-1.el9ap.noarch
    python3.11-pytest-ansible-25.8.0-1.el9ap.noarch
    ansible-dev-environment-25.8.0-1.el9ap.noarch
    ansible-creator-25.8.0-1.el9ap.noarch
    python3.11-tox-ansible-25.8.0-1.el9ap.noarch
     ansible-dev-tools-25.8.3-1.el9ap.noarch
  2. On successful installation, you can view the help documentation for the ansible-creator utility:
    $ ansible-creator --help
    
    usage: ansible-creator [-h] [--version] command ...
    
    The fastest way to generate all your ansible content.
    
    Positional arguments:
     command
      add           Add resources to an existing Ansible project.
      init          Initialize a new Ansible project.
    
    Options:
     --version      Print ansible-creator version and exit.
     -h     --help  Show this help message and exit