Specified which shell to use.

This commit is contained in:
Joseph Hanson 2023-09-22 23:06:50 -05:00
parent 9c6aef4627
commit 8dc866c72f
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -18,7 +18,9 @@
state: absent
path: /var/lib/rook
- name: Delete (/dev/mapper/ceph-*) # noqa: no-changed-when
ansible.builtin.shell: |
ansible.builtin.shell:
executable: /bin/bash
cmd: |
set -o pipefail
ls /dev/mapper/ceph-* | xargs -I% -- dmsetup remove_all --force % || true
- name: Delete (/dev/ceph-*) # noqa: no-changed-when