From: David Galloway Date: Mon, 27 Jun 2022 22:51:57 +0000 (-0400) Subject: common: Install Satellite RPM via rpm command X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F685%2Fhead;p=ceph-cm-ansible.git common: Install Satellite RPM via rpm command Seriously... https://access.redhat.com/solutions/6438061 Signed-off-by: David Galloway --- diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index f8c79fe..1989a48 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -18,11 +18,16 @@ set_fact: have_entitlements: "{{ subscription_manager_org != '' and subscription_manager_activationkey != ''}}" +- name: Download CA Cert from Satellite Server + get_url: + url: "{{ satellite_cert_rpm }}" + dest: /tmp/katello-ca-consumer-latest.noarch.rpm + when: use_satellite == true + - name: Install CA Cert from Satellite Server - yum: - name: "{{ satellite_cert_rpm }}" - state: present - validate_certs: no + command: rpm --reinstall -Uvh /tmp/katello-ca-consumer-latest.noarch.rpm + register: sat_rpm_install + failed_when: sat_rpm_install.rc != 0 and "is already installed" not in sat_rpm_install.stderr when: use_satellite == true # set the releasever cause without it rhel-7-server-rpms repo fails on rhel7.9 machines