From b48b97b115f646510102a3d4726e03ddc06968b1 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 4 Sep 2018 18:40:28 +0100 Subject: [PATCH] MNAIO: Fix libguestfs appliance bug workaround task Currently the contents of zz-dash-packages is as follows: dash rm -rf /var/tmp/.guestfs It should be: dash This fixes that. Also, the guestfs location that needs removing has a uuid appended, so we add a wildcard to the removal. Change-Id: If53f55c901f5abf19bdfff0c0f17c2f9ed69d915 --- multi-node-aio/playbooks/setup-host.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multi-node-aio/playbooks/setup-host.yml b/multi-node-aio/playbooks/setup-host.yml index 8791d4c9..487e79a7 100644 --- a/multi-node-aio/playbooks/setup-host.yml +++ b/multi-node-aio/playbooks/setup-host.yml @@ -91,9 +91,9 @@ # https://bugzilla.redhat.com/show_bug.cgi?id=1591617 # https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1615337 - name: Apply workaround for older versions to make guestfish work - shell: >- + shell: | echo dash > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-dash-packages - rm -rf /var/tmp/.guestfs + rm -rf /var/tmp/.guestfs* when: - "{{ (_libguestfs_version.stdout is version('1.38.1', '<')) or ((_libguestfs_version.stdout is version('1.39.0', '>=')) and