]> git-server-git.apps.pok.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>
Wed, 16 Dec 2020 13:05:45 +0000 (14:05 +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 ceae1dbf9dffe2a2b2537d037f83ff41fe3ae51d..f77bab4755dd9d32e26e8582f96b035608b656f6 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"