From 5777cfe47928064f6ea7360dfa88383429b106fd Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 8 Jan 2019 12:47:31 +0000 Subject: [PATCH] Implement workaround for ansible unmount bug It seems that unmount can falsely report success but removing it from fstab seems to be a way to avoid that bug. Example build failure caused by it: http://logs.openstack.org/13/626613/1/check/tripleo-buildimage-overcloud-full-centos-7/e9d97b2/job-output.txt.gz See https://github.com/ansible/ansible/issues/48313 Change-Id: I608ba6801f36f834d4e82c0438b41ea1e90620e8 --- roles/configure-swap/tasks/ephemeral.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/configure-swap/tasks/ephemeral.yaml b/roles/configure-swap/tasks/ephemeral.yaml index e800e32f..d7e7b844 100644 --- a/roles/configure-swap/tasks/ephemeral.yaml +++ b/roles/configure-swap/tasks/ephemeral.yaml @@ -16,7 +16,11 @@ become: yes mount: name: "{{ ephemeral_device }}" - state: unmounted + state: "{{ item }}" + with_items: + - unmounted + - absent + # ^ https://github.com/ansible/ansible/issues/48313 - name: Get existing partitions become: yes