]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
purge: fix purge of lvm devices
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 1 Mar 2019 11:27:00 +0000 (12:27 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 1 Mar 2019 20:31:14 +0000 (20:31 +0000)
commit89f77589fa0a431490933379c0781e1df2b95440
treee5d107eb23008c1d289bff0268e086ab35148cf2
parent45a7082712d9dda4219ff5112573b55f0461df54
purge: fix purge of lvm devices

using `shell` module seems to be the only way to make this task working
on rhel based distribution AND debian based distributions.

on ubuntu, using `command` ansible module fails like following
(not due to `sudo` usage or not):
```
ok: [osd1] => changed=false
  cmd: command -v ceph-volume
  failed_when_result: false
  msg: '[Errno 2] No such file or directory: ''command'': ''command'''
  rc: 2
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1653307
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/purge-cluster.yml