From 5a7c8e9aa823684d124dba5412bb52e4572a6dde Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 26 Feb 2018 18:29:28 -0500 Subject: [PATCH] common: Tolerate new subscription-manager behavior subscription-manager throws an error now if there are no releases to list for a subscribed Beta distro. Signed-off-by: David Galloway --- roles/common/tasks/rhel-entitlements.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index 2892e038..ea4b0576 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -60,6 +60,7 @@ shell: "subscription-manager release --list | grep -E '[0-9]'" register: rhsm_release_list changed_when: false + failed_when: rhsm_release_list.rc != 0 and "Beta" not in ansible_lsb.description # We don't need to be registered to CDN since there's no packages available # for this Beta/Alpha/RC installation -- 2.47.3