]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
lint: use shell only when shell functionality is required
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Oct 2020 11:35:39 +0000 (13:35 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 23 Nov 2020 07:33:47 +0000 (08:33 +0100)
Fix ansible-lint 305 error:

[305] Use shell only when shell functionality is required

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/purge-cluster.yml

index 55d2bc1f37a15cc2d2663aa95125e407a85524ea..a5d3cc5257bc491906ab938ec167a3e30465d5b2 100644 (file)
     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"