]> 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 22:16:19 +0000 (22:16 +0000)
commit255eab59acf3b1ea344185784b44f2365e2651dc
tree5f78276ad0c3c910c9ea90f2e4b8e71167aa29b0
parent2393d823066b7a9d4d2fa2db7c936c46af3f338b
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>
(cherry picked from commit 89f77589fa0a431490933379c0781e1df2b95440)
infrastructure-playbooks/purge-cluster.yml