]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
fix 'command -v' tasks v5.0.5
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:59 +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 a6d2cb703834989057bbfd978aab415f1f45751f..d409a5f1ca40b4f0178967316ccf2db5b00431cd 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 cce8414722413e2327b2cc9ecbd5750088b91944..bb6180fea0a5a77f8e0710456a7d92a03cc3e480 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