]> git-server-git.apps.pok.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>
Mon, 22 Mar 2021 12:53:11 +0000 (13:53 +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 10a1353c074c368cc110d8436f0f59f51db4c2f3..b29dd93a94e86e00d863dcc373b9d213f48cb5cb 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