Created
July 11, 2019 21:57
-
-
Save lparkes/1fd8a26bc9421fc709ce15f9fcc028b6 to your computer and use it in GitHub Desktop.
Update Satellite Tools past the python2-qpid-proton -> python-qpid-proton rename
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The package python2-qpid-proton in EPEL has been replaced by python-qpid-proton | |
# in Satellite Tools. There is no obsoletes information though, so yum will never | |
# know what to do. | |
# | |
# Instead we delete python2-qpid-proton and then install the latest versions of | |
# the packages that we actually want. | |
- hosts: satellite_rhel7 | |
gather_facts: now | |
become: yes | |
tasks: | |
- name: Find yum repos | |
command: ls -1 /etc/yum.repos.d/. | |
register: repos | |
check_mode: no | |
changed_when: no | |
# Just configure access to our repo by installing this one simple RPM. | |
# What do you mean you have a proxy that you need to authenticate to? | |
- name: Remove illicit repos | |
file: | |
name: /etc/yum.repos.d/{{ item }} | |
state: "{{ 'file' if item == 'redhat.repo' else 'absent' }}" | |
loop: "{{ repos.stdout_lines }}" | |
- name: Refresh /etc/yum.repos.d/redhat.repo | |
command: subscription-manager refresh | |
# python2-qpid-proton has been replaced by python-qpid-proton, | |
# but there isn't enough metadata present for yum to be able to | |
# work this out. | |
- name: Remove EPEL qpid-proton-c | |
yum: | |
state: absent | |
name: | |
- python2-qpid-proton-0.1*.el7 | |
- python2-qpid-proton-0.2[0-5]*.el7 | |
- name: Update Satellite Tools | |
yum: | |
state: latest | |
name: | |
- katello-agent | |
- gofer | |
- katello-host-tools-fact-plugin | |
- python-pulp-common |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment