]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
fix 'command -v' tasks v6.0.2
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 18 Mar 2021 10:36:59 +0000 (11:36 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 22 Mar 2021 12:52:39 +0000 (13:52 +0100)
`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 14c472707c165f77def05826b22885480af3e8f9)

infrastructure-playbooks/docker-to-podman.yml
infrastructure-playbooks/purge-cluster.yml

index b981c0f7a84b3f60eeb9dbd01ba3efcb4e032444..fac7899d38c5b130bcb2356666f2dc1877f03a5e 100644 (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
index 023d502ff205237e3c94a3a81ec4b0eec41bee62..86957093f213e54f290165f2ebb0536268f43a7e 100644 (file)
     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