mirror of https://github.com/ceph/ceph-ansible.git
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 <dsavinea@redhat.com>
pull/5002/head
parent
2f07b85131
commit
fa8aa8c864
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in New Issue