fix 'command -v' tasks

`command -v` is a bash script which needs a shell to run.

Fixes: #6325

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 14c472707c)
pull/6383/head
Guillaume Abrioux 2021-03-18 11:36:59 +01:00
parent bbf8b2fdf6
commit 2cd8c3637c
2 changed files with 4 additions and 4 deletions

View File

@ -79,8 +79,8 @@
tags: with_pkg
when: not is_atomic | bool
- name: check podman presence
command: command -v podman
- name: check podman presence # noqa : 305
shell: command -v podman
register: podman_presence
changed_when: false
failed_when: false

View File

@ -493,8 +493,8 @@
failed_when: false
register: ceph_lockbox_partition_to_erase_path
- name: see if ceph-volume is installed
command: command -v ceph-volume
- name: see if ceph-volume is installed # noqa : 305
shell: command -v ceph-volume
changed_when: false
failed_when: false
register: ceph_volume_present