From fffcd1b4e39117bfa9ca87ac77b3104d39328330 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 26 Feb 2018 15:04:39 -0500 Subject: [PATCH] tools: Clean up katello facts when prepping RHEL image capture Signed-off-by: David Galloway --- tools/prep-fog-capture.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/prep-fog-capture.yml b/tools/prep-fog-capture.yml index 697388df..ea29ef2e 100644 --- a/tools/prep-fog-capture.yml +++ b/tools/prep-fog-capture.yml @@ -60,3 +60,11 @@ 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' -- 2.47.3