From: Sébastien Han Date: Wed, 24 Feb 2016 10:01:17 +0000 (+0100) Subject: ceph-mds: enable systemd unit file X-Git-Tag: v1.0.0~21^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b37b2e0be37e31cb493547402d06181188d06baf;p=ceph-ansible.git ceph-mds: enable systemd unit file closes: #552 Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-mds/tasks/pre_requisite.yml b/roles/ceph-mds/tasks/pre_requisite.yml index ef05bfd69..9481bbb55 100644 --- a/roles/ceph-mds/tasks/pre_requisite.yml +++ b/roles/ceph-mds/tasks/pre_requisite.yml @@ -64,6 +64,17 @@ changed_when: false when: ansible_distribution != "Ubuntu" +- 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@{{ ansible_hostname }}.service + state: link + changed_when: false + failed_when: false + when: + ansible_distribution != "Ubuntu" and + is_ceph_infernalis + - name: start and add that the metadata service to the init sequence (ubuntu) service: name: ceph-mds