]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
tools: Unsubscribe RHEL machines during FOG image capture 376/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 8 Feb 2018 20:22:17 +0000 (15:22 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 8 Feb 2018 20:22:17 +0000 (15:22 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
tools/prep-fog-capture.yml

index 416cce7fbeac1ed5f3f04521c8b1cbd99863dca2..697388df8eecc4f5d2a0d299c6bf5bf7d12cada4 100644 (file)
@@ -55,3 +55,8 @@
       state: absent
     with_items: "{{ ssh_host_keys.stdout_lines|default([]) }}"
     when: ssh_host_keys is defined
+
+  - name: Unsubscribe RHEL
+    command: subscription-manager unregister
+    when: '"Red Hat" in ansible_lsb.description'
+    failed_when: false