From: Guillaume Abrioux Date: Fri, 2 Oct 2020 11:35:39 +0000 (+0200) Subject: lint: use shell only when shell functionality is required X-Git-Tag: v5.0.3~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5375713d3ef339a77411a64e8824e3c1a2ada647;p=ceph-ansible.git 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) --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 4e79aee7f..b884f6b1b 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"