]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
subscription-manager vars will always be defined, don't check for them
authorAndrew Schoen <aschoen@redhat.com>
Sun, 15 Mar 2015 18:00:06 +0000 (13:00 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Sun, 15 Mar 2015 18:00:06 +0000 (13:00 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/common/tasks/setup-redhat.yml

index cc13a9cc8aca184d608ad4cde6e0dcbb56fcea0e..cb1575d58e3f848968247cbe8752fc4215155cd6 100644 (file)
@@ -8,11 +8,9 @@
   register: subscription 
   ignore_errors: yes
   changed_when: false
-  when: subscription_manager_activationkey and
-        subscription_manager_org 
 
 - name: Register with subscription-manager.
   command: subscription-manager register
            --activationkey={{ subscription_manager_activationkey }}
            --org={{ subscription_manager_org }}
-  when: subscription is defined and subscription.rc != 0
+  when: subscription.rc != 0