From: David Galloway Date: Fri, 19 May 2017 16:17:14 +0000 (-0400) Subject: common: Retry unregister beta distro from CDN X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a34f697fafb929b8b5d868361c4996403ae3bd6d;p=ceph-cm-ansible.git common: Retry unregister beta distro from CDN Seeing intermittent `subscription-manager unregister` failures in Octo. Since the register task has retries, I see no reason unregistering can't. Signed-off-by: David Galloway --- diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index 9dbbb2b..d6ff92b 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -60,6 +60,9 @@ command: subscription-manager unregister when: ansible_distribution_version not in rhsm_release_list.stdout_lines register: unregistered_beta_distro + until: unregistered_beta_distro|success + retries: 5 + delay: 10 # Setting rhsm_registered back to false allows the rest of the playbook # (except beta_repos.yml) to be skipped