From: David Galloway Date: Mon, 26 Feb 2018 23:29:28 +0000 (-0500) Subject: common: Tolerate new subscription-manager behavior X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F381%2Fhead;p=ceph-cm-ansible.git 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 --- 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