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 <gabrioux@redhat.com>
(cherry picked from commit 11b4bf5083)
pull/6166/head
Guillaume Abrioux 2020-10-02 13:35:39 +02:00
parent 2a0e07cfd7
commit ab62d27c44
1 changed files with 3 additions and 1 deletions

View File

@ -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"