]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
fix 'command -v' tasks
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 18 Mar 2021 10:36:59 +0000 (11:36 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 18 Mar 2021 19:29:05 +0000 (20:29 +0100)
`command -v` is a bash script which needs a shell to run.

Fixes: #6325
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
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 7ead4d366219ac0f5eb12721a1808bd5b1f4dda2..016926ebe49cecf12748e68c985946ef5b52e450 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