mirror of https://github.com/ceph/ceph-ansible.git
Do not create symlinks for systemd manually
Instead use 'systemctl enable' to create the symlinks. This fixes: https://github.com/ceph/ceph-ansible/issues/779 Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/781/head
parent
6589a6f090
commit
d2b94c2a4c
|
@ -71,10 +71,7 @@
|
|||
when: not use_systemd
|
||||
|
||||
- name: enable systemd unit file for mds instance (for or after infernalis)
|
||||
file:
|
||||
src: /usr/lib/systemd/system/ceph-mds@.service
|
||||
dest: /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ mds_name }}.service
|
||||
state: link
|
||||
command: systemctl enable ceph-mds@{{ mds_name }}
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
when:
|
||||
|
|
|
@ -77,13 +77,11 @@
|
|||
- use_systemd
|
||||
- is_after_hammer
|
||||
|
||||
- name: enable osd service instance(s) (for or after infernalis)
|
||||
file:
|
||||
src: /usr/lib/systemd/system/ceph-osd@.service
|
||||
dest: /etc/systemd/system/multi-user.target.wants/ceph-osd@{{ item }}.service
|
||||
state: link
|
||||
with_items: osd_id.stdout_lines
|
||||
- name: enable the osd service (for or after infernalis)
|
||||
command: systemctl enable ceph-osd@{{ item }}
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
with_items: osd_id.stdout_lines
|
||||
when:
|
||||
- use_systemd
|
||||
- is_after_hammer
|
||||
|
|
|
@ -15,10 +15,7 @@
|
|||
- is_before_infernalis
|
||||
|
||||
- name: enable systemd unit file for the rbd mirror service (systemd after hammer)
|
||||
file:
|
||||
src: /usr/lib/systemd/system/ceph-rbd-mirror@.service
|
||||
dest: "/etc/systemd/system/multi-user.target.wants/ceph-rbd-mirror@{{ ceph_rbd_mirror_local_user }}.service"
|
||||
state: link
|
||||
command: systemctl enable ceph-rbd-mirror@{{ ceph_rbd_mirror_local_user }}
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
when:
|
||||
|
|
|
@ -29,10 +29,7 @@
|
|||
- is_before_infernalis
|
||||
|
||||
- name: enable systemd unit file for rgw instance (for or after infernalis)
|
||||
file:
|
||||
src: /usr/lib/systemd/system/ceph-radosgw@.service
|
||||
dest: /etc/systemd/system/multi-user.target.wants/ceph-radosgw@rgw.{{ ansible_hostname }}.service
|
||||
state: link
|
||||
command: systemctl enable ceph-radosgw@rgw.{{ ansible_hostname }}
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
when:
|
||||
|
|
Loading…
Reference in New Issue