From d779f7dae992a75d428cf1b55f06e4787b5bf766 Mon Sep 17 00:00:00 2001 From: sean-freeman <1815807+sean-freeman@users.noreply.github.com> Date: Fri, 21 Jun 2024 20:59:37 +0100 Subject: [PATCH] sap_install_media_detect: aws igw slow impact gpg key --- .../tasks/cleanup/disable-epel-repo.yml | 1 + .../tasks/prepare/enable_rar_handling.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/roles/sap_install_media_detect/tasks/cleanup/disable-epel-repo.yml b/roles/sap_install_media_detect/tasks/cleanup/disable-epel-repo.yml index c6668e1bd..f33657ba8 100644 --- a/roles/sap_install_media_detect/tasks/cleanup/disable-epel-repo.yml +++ b/roles/sap_install_media_detect/tasks/cleanup/disable-epel-repo.yml @@ -12,6 +12,7 @@ ansible.builtin.rpm_key: state: absent key: "{{ sap_install_media_detect_epel_gpg_key_url }}" + retries: 10 when: - sap_install_media_detect_use_rpm_key_module_for_removing_the_key - __sap_install_media_detect_register_rpm_q_gpg_pubkeys.stdout | length != 0 diff --git a/roles/sap_install_media_detect/tasks/prepare/enable_rar_handling.yml b/roles/sap_install_media_detect/tasks/prepare/enable_rar_handling.yml index a829654ab..7f993905b 100644 --- a/roles/sap_install_media_detect/tasks/prepare/enable_rar_handling.yml +++ b/roles/sap_install_media_detect/tasks/prepare/enable_rar_handling.yml @@ -26,6 +26,7 @@ ansible.builtin.rpm_key: state: present key: "{{ sap_install_media_detect_epel_gpg_key_url }}" + retries: 10 # ansible.builtin.command: "rpm --import {{ eap_install_media_detect_epel_gpg_key_url }}" # changed_when: true @@ -38,6 +39,7 @@ # name: "{{ sap_install_media_detect_epel_url }}" name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm" state: present + retries: 10 # Reason for noqa: We would need an extra call to /usr/bin/crb status to determine the current status - name: SAP Install Media Detect - Prepare - EPEL - Enable the CRB repo # noqa no-changed-when