From 9d7159dab36efce8035f35b3cdaa0e9d9438f799 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Fri, 22 Sep 2023 12:16:02 +0200 Subject: [PATCH] templates/packer: retry subscribtion --- templates/packer/ansible/roles/common/tasks/subscribe.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/packer/ansible/roles/common/tasks/subscribe.yml b/templates/packer/ansible/roles/common/tasks/subscribe.yml index 06f0d2170..6291bd7b2 100644 --- a/templates/packer/ansible/roles/common/tasks/subscribe.yml +++ b/templates/packer/ansible/roles/common/tasks/subscribe.yml @@ -7,6 +7,9 @@ community.general.redhat_subscription: activationkey: "{{ RH_ACTIVATION_KEY }}" org_id: "{{ RH_ORG_ID }}" + register: result + retries: 5 + until: result is success - name: Enable repo mgmt through subman become: yes