]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: Ensure lvm2 is installed
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 20 Mar 2019 19:30:46 +0000 (15:30 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 20 Mar 2019 22:26:45 +0000 (22:26 +0000)
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 <dsavinea@redhat.com>
roles/ceph-osd/tasks/main.yml

index 139b6bbd6f5e9c3b44af975835c59c5b01fb2f7c..5974fe7aca8a923a69a6929d9c93c32ef286ea15 100644 (file)
   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