From fa8aa8c86470505a10ae2ce0573bd37958226624 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Tue, 28 Jan 2020 22:31:04 -0500 Subject: [PATCH] ceph-container-engine: lvm2 on OSD nodes only Since de8f2a9 the lvm2 package installation has been moved from ceph-osd role to ceph-container-engine role. But the scope wasn't limited to the OSD nodes only. This commit fixes this behaviour. Signed-off-by: Dimitri Savineau --- .../tasks/pre_requisites/prerequisites.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml b/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml index f4533c4b8..7e9ea87e3 100644 --- a/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml +++ b/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml @@ -23,14 +23,22 @@ tags: with_pkg -- name: install container and lvm2 packages +- name: install container packages package: - name: ['{{ container_package_name }}', '{{ container_binding_name }}', 'lvm2'] + name: ['{{ container_package_name }}', '{{ container_binding_name }}'] update_cache: true register: result until: result is succeeded tags: with_pkg +- name: install lvm2 package + package: + name: lvm2 + register: result + until: result is succeeded + tags: with_pkg + when: inventory_hostname in groups.get(osd_group_name, []) + - name: start container service service: name: '{{ container_service_name }}'