diff --git a/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml b/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml index c011237c1..cd583b833 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 }}'