From: Andrew Schoen Date: Thu, 30 Apr 2015 15:01:40 +0000 (-0500) Subject: Fixed bug where entitlement setup would fail with --check. X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c2acbf6dd893358261f81dc866faca42ffb33a42;p=ceph-cm-ansible.git Fixed bug where entitlement setup would fail with --check. The command module is skipped when --check is used which causes the registered var subscription to not exist the next task fails. Signed-off-by: Andrew Schoen --- diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index b3ee9e2..b61c7a7 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -19,7 +19,8 @@ --activationkey={{ subscription_manager_activationkey }} --org={{ subscription_manager_org }} no_log: true - when: subscription.rc != 0 + when: subscription is defined and + subscription.rc != 0 register: entitled - name: disable all rhsm repos