]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Install Satellite RPM via rpm command 685/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 27 Jun 2022 22:51:57 +0000 (18:51 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 28 Jun 2022 00:54:29 +0000 (20:54 -0400)
Seriously... https://access.redhat.com/solutions/6438061

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/rhel-entitlements.yml

index f8c79fe08f26ddd16cd0a9e1cc6de3bddd2a8135..1989a4810cebe0d5bfcdaa1b8b6ef538182493ea 100644 (file)
   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