From ed59d0bb3f6470ecf62fc6af19663d0f674dd84e Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 27 Jun 2022 18:51:57 -0400 Subject: [PATCH] common: Install Satellite RPM via rpm command Seriously... https://access.redhat.com/solutions/6438061 Signed-off-by: David Galloway --- roles/common/tasks/rhel-entitlements.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 -- 2.39.5