Skip to content

Commit

Permalink
fix 'command -v' tasks
Browse files Browse the repository at this point in the history
`command -v` is a bash script which needs a shell to run.

Fixes: #6325

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
  • Loading branch information
guits committed Mar 18, 2021
1 parent 07029e1 commit 14c4727
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions infrastructure-playbooks/docker-to-podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions infrastructure-playbooks/purge-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14c4727

Please sign in to comment.