mirror of https://github.com/ceph/ceph-ansible.git
ceph-container-engine: lvm2 on OSD nodes only
Sincepull/5038/headde8f2a9
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> (cherry picked from commitfa8aa8c864
)
parent
675b6788f4
commit
460d3557d7
|
@ -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