]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
tools: Clean up katello facts when prepping RHEL image capture 380/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 26 Feb 2018 20:04:39 +0000 (15:04 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 26 Feb 2018 22:13:06 +0000 (17:13 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
tools/prep-fog-capture.yml

index 697388df8eecc4f5d2a0d299c6bf5bf7d12cada4..ea29ef2e64d7da23e36b2de6cbf86eeb9e0a6c40 100644 (file)
     command: subscription-manager unregister
     when: '"Red Hat" in ansible_lsb.description'
     failed_when: false
+
+  # A file gets leftover when a testnode is registered with Satellite that caused
+  # each registered subsequent testnode to report the wrong hostname
+  - name: Clean up katello facts
+    file:
+      path: /etc/rhsm/facts/katello.facts
+      state: absent
+    when: '"Red Hat" in ansible_lsb.description'