From: Guillaume Abrioux Date: Thu, 18 Mar 2021 10:36:59 +0000 (+0100) Subject: fix 'command -v' tasks X-Git-Tag: v4.0.51~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2cd8c3637cb9fa062dc513527480dd9f334af9c4;p=ceph-ansible.git fix 'command -v' tasks `command -v` is a bash script which needs a shell to run. Fixes: #6325 Signed-off-by: Guillaume Abrioux (cherry picked from commit 14c472707c165f77def05826b22885480af3e8f9) --- diff --git a/infrastructure-playbooks/docker-to-podman.yml b/infrastructure-playbooks/docker-to-podman.yml index a6d2cb703..d409a5f1c 100644 --- a/infrastructure-playbooks/docker-to-podman.yml +++ b/infrastructure-playbooks/docker-to-podman.yml @@ -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 diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 10a1353c0..b29dd93a9 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -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