]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
check for subscription manager
authorAlfredo Deza <adeza@redhat.com>
Fri, 12 Feb 2016 20:54:56 +0000 (15:54 -0500)
committerAlfredo Deza <adeza@redhat.com>
Fri, 12 Feb 2016 20:54:56 +0000 (15:54 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
roles/ceph-agent/tasks/pre_requisite.yml

index 02a00300aecc495750f71f31a0c5bcc1fcc00d38..b9f5dbe46e2af33c765a35a3bf560345f883e68f 100644 (file)
@@ -1,4 +1,9 @@
 ---
+- name: determine if node is registered with subscription-manager.
+  command: subscription-manager identity
+  register: subscription
+  changed_when: false
+
 - name: install dependencies
   apt:
     pkg: calamari-server
@@ -8,6 +13,8 @@
     - package-install
 
 - name: install dependencies
+  # XXX Determine what RH repository this will belong to so that it can be
+  # properly checked and errored if the repository is not enabled.
   yum:
     name: rhscon-agent
     state: present