]> 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>
Tue, 24 Nov 2020 09:39:03 +0000 (10:39 +0100)
Fix ansible-lint 305 error:

[305] Use shell only when shell functionality is required

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 11b4bf5083639abea66a874ba86ac38a1b706ca6)

infrastructure-playbooks/purge-cluster.yml

index 4e79aee7feeaced9862a1593e52801d996fa195f..b884f6b1bc73cf5259af0f558e1a748b6e251b0f 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"