How Do I Resolve the ansible-core Package Conflicts Error When Upgrading the Ansible Tower to Ansible Automation Platform 2?

Solution Verified - Updated -

Issue

  • When I ran the setup.sh script to upgrade, I faced the error below.

    # ./setup.sh 
    [warn] Will install bundled Ansible
    Updating Subscription Management repositories.
    Ansible Automation Platform Repository -                                                                                                                  2.9 MB/s | 2.9 kB     00:00    
    Error: 
     Problem: problem with installed package ansible-2.9.27-1.el8ae.noarch
      - package ansible-core-2.12.2-3.1.el8.x86_64 conflicts with ansible < 2.10.0 provided by ansible-2.9.27-1.el8ae.noarch
      - package ansible-core-2.12.2-3.1.el8.x86_64 conflicts with ansible < 2.10.0 provided by ansible-2.9.27-1.el8ap.noarch
      - package ansible-core-2.12.2-3.1.el8.x86_64 conflicts with ansible < 2.10.0 provided by ansible-core-2.12.1-1.el8ap.x86_64
      - cannot install both ansible-core-2.12.2-3.1.el8.x86_64 and ansible-core-2.12.1-1.el8ap.x86_64
      - cannot install the best candidate for the job
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
    Using /etc/ansible/ansible.cfg as config file
    ERROR! the playbook: ansible.automation_platform_installer.install could not be found
    [error] Oops!  An error occurred while running setup.
    Setup log saved to /var/log/tower/setup-2022-06-21-09:52:37.log.
    

Environment

  • Upgrading from Ansible Tower 3.8 to Ansible Automation Platform 2.x

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