Setup.sh script on Ansible automation Platform fails with Error: No matching repo to modify: ansible-automation-platform.

Solution Verified - Updated -

Issue

  • Setup script on Ansible Automation Platform fails at task 'Disable Automation Platform repository’ with error:

    TASK [ansible.automation_platform_installer.repo_management : Disable Automation Platform repository] ***
    fatal: [controller.example.com]: FAILED! => {"changed": true, "cmd": ["dnf", "config-manager", "--disable", "ansible-automation-platform"], "delta": "0:00:04.392630", "end": "2024-08-22 14:33:16.899371", "msg": "non-zero return code", "rc": 1, "start": "2024-08-22 14:33:12.506741", "stderr": "Repository rhel-8-for-x86_64-baseos-rpms is listed more than once in the configuration\nRepository rhel-8-for-x86_64-appstream-rpms is listed more than once in the configuration\nError: No matching repo to modify: ansible-automation-platform.", "stderr_lines": ["Repository rhel-8-for-x86_64-baseos-rpms is listed more than once in the configuration", "Repository rhel-8-for-x86_64-appstream-rpms is listed more than once in the configuration", "Error: No matching repo to modify: ansible-automation-platform."], "stdout": "Updating Subscription Management repositories.", "stdout_lines": ["Updating Subscription Management repositories."]}
    

Environment

  • Red Hat Ansible Automation Platform 2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content