]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: fix monitor startup 764/head
authorSébastien Han <seb@redhat.com>
Sun, 8 May 2016 22:41:44 +0000 (00:41 +0200)
committerSébastien Han <seb@redhat.com>
Sun, 8 May 2016 22:41:44 +0000 (00:41 +0200)
Somehow on CentOS 7.2 with Jewel, the service enablement by the Ansible service module
does not seem to work properly.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/start_monitor.yml

index 7cd13de1688d82e8f43817b23aa4f607313d9e16..5aca684093c0583a19728f704df44027195f9cda 100644 (file)
     ansible_distribution != "Ubuntu" and
     is_before_infernalis
 
-- name: enable systemd unit file for mon instance (for or after infernalis)
-  file:
-    src: /usr/lib/systemd/system/ceph-mon@.service
-    dest: /etc/systemd/system/multi-user.target.wants/ceph-mon@{{ monitor_name }}.service
-    state: link
+- name: start and add that the monitor service to the init sequence (for or after infernalis)
+  command: systemctl enable ceph-mon@{{ monitor_name }}
   changed_when: false
   failed_when: false
   when:
     use_systemd and
     is_after_hammer
 
-- name: start and add that the monitor service to the init sequence (for or after infernalis)
+- name: start the monitor service (for or after infernalis)
   service:
       name: ceph-mon@{{ monitor_name }}
       state: started