From: Huamin Chen Date: Tue, 12 Jan 2016 20:12:40 +0000 (+0000) Subject: make systemd enable work for mon instance X-Git-Tag: v1.0.0~66^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=99c429930ed1e7b4defae884e97b84c099a923ba;p=ceph-ansible.git make systemd enable work for mon instance Signed-off-by: Huamin Chen --- diff --git a/roles/ceph-mon/tasks/start_monitor.yml b/roles/ceph-mon/tasks/start_monitor.yml index f0710bd90..620fa276b 100644 --- a/roles/ceph-mon/tasks/start_monitor.yml +++ b/roles/ceph-mon/tasks/start_monitor.yml @@ -46,6 +46,13 @@ ansible_distribution != "Ubuntu" and not is_ceph_infernalis +- name: enable systemd unit file for mon instance (for or after infernalis) + command: "ln -s /usr/lib/systemd/system/ceph-mon@.service /etc/systemd/system/multi-user.target.wants/ceph-mon@{{ ansible_hostname }}.service" + changed_when: false + when: + ansible_distribution != "Ubuntu" and + is_ceph_infernalis + - name: start and add that the monitor service to the init sequence (for or after infernalis) service: name: ceph-mon@{{ ansible_hostname }}