How to enable Ansible 2.9 repository in Red Hat Satellite using hammer command?

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6

Issue

  • How to enable Ansible 2.9 repository in satellite using hammer command?

Resolution

  • Run the below hammer command to search the correct repository on the Satellite server, as an example search "Ansible Engine 2.9" from the list of available repository set.

    # hammer organization list
    
    # hammer repository-set list --search 'Ansible Engine 2.9' --organization-id X
    
  • Run the below hammer commands to enable the correct repository on the Satellite server.

    # hammer repository-set enable --name 'Red Hat Ansible Engine 2.9 RPMs for Red Hat Enterprise Linux 7 Server' --basearch x86_64 --organization-id X
    

    For RHEL 8

     # hammer repository-set enable --name 'Red Hat Ansible Engine 2.9 for RHEL 8 x86_64 (RPMs)' --basearch x86_64 --organization-id 1
    
    • Note: Replace the X with the correct organization ID

    • IMP NOTE

    Support for Ansible Engine 2.9 is no longer available in RHEL 9
    
    Ansible Engine 2.9 is no longer available in Red Hat Enterprise Linux 9. Playbooks that previously ran on Ansible Engine 2.9 might generate error messages related to missing plugins or modules. If your use case for Ansible falls outside of the limited scope of support for Ansible Core provided in RHEL, contact Red Hat to discuss the available offerings.
    
    RHEL System Roles now uses Ansible Core
    
    As of the RHEL 9 General Availability release, Ansible Core is provided with a limited scope of support to enable RHEL-supported automation use cases. Ansible Core is available in the AppStream repository for RHEL. For details on the scope of support, refer to the Scope of support for the Ansible Core package included in the RHEL 9 AppStream. 
    
  • Please refer to our documentation Considerations in adopting RHEL 9

Diagnostic Steps

  • Run the below hammer command to verify the enabled repository on the Satellite server.

    # hammer repository list --search 'Ansible' --organization-id X
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments