From: Dimitri Savineau Date: Wed, 20 Mar 2019 19:30:46 +0000 (-0400) Subject: ceph-osd: Ensure lvm2 is installed X-Git-Tag: v3.2.10~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e4a71eabd90a35741136d67cd9e9a4575f1e74d7;p=ceph-ansible.git ceph-osd: Ensure lvm2 is installed When using osd_scenario lvm, we never check if the lvm2 package is present on the host. When using containerized deployment and docker on CentOS/RedHat this package will be automatically installed as a dependency but not for Ubuntu distribution. OSD deployed via ceph-volume require the lvmetad.socket to be active and running. Resolves: #3728 Signed-off-by: Dimitri Savineau (cherry picked from commit 179fdfbc19ab7001fdd185f131039043d690bbe8) --- diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index 32184ab34..03eb43de5 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -21,6 +21,17 @@ tags: - with_pkg +- name: install lvm2 + package: + name: lvm2 + register: result + until: result is succeeded + when: + - osd_scenario == 'lvm' + - not is_atomic + tags: + - with_pkg + - name: include_tasks common.yml include_tasks: common.yml