From ab62d27c4437e990a83378a7352c65a9bc448ed6 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 (cherry picked from commit 11b4bf5083639abea66a874ba86ac38a1b706ca6) --- 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 ceae1dbf9..f77bab475 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -729,7 +729,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"