From 3366e869664af4443184f36261cff6b9cec9cd78 Mon Sep 17 00:00:00 2001 From: WingkaiHo Date: Mon, 27 Mar 2017 11:01:35 +0800 Subject: [PATCH] enable ceph-mon.target service after monitor start, fix the ceph monitor service do not start when the ceph reboot --- roles/ceph-mon/tasks/start_monitor.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/ceph-mon/tasks/start_monitor.yml b/roles/ceph-mon/tasks/start_monitor.yml index 4106efe2f..c1fd413ad 100644 --- a/roles/ceph-mon/tasks/start_monitor.yml +++ b/roles/ceph-mon/tasks/start_monitor.yml @@ -5,3 +5,9 @@ state: started enabled: yes changed_when: false + +- name: enable ceph-mon.target service + service: + name: ceph-mon.target + enabled: yes + changed_when: false