From 11b4bf5083639abea66a874ba86ac38a1b706ca6 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 2 Oct 2020 13:35:39 +0200 Subject: [PATCH] lint: use shell only when shell functionality is required Fix ansible-lint 305 error: [305] Use shell only when shell functionality is required Signed-off-by: Guillaume Abrioux --- infrastructure-playbooks/purge-cluster.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 55d2bc1f3..a5d3cc525 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -732,7 +732,9 @@ listen: "remove data" - name: umount osd data partition - shell: umount {{ item }} + mount: + path: "{{ item }}" + state: unmounted with_items: "{{ mounted_osd.stdout_lines }}" listen: "remove data"