]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Removing symblic links and fixing systemctl enable on CoreOS
authorpprokop <piotr.prokop@intel.com>
Tue, 28 Jun 2016 11:58:26 +0000 (13:58 +0200)
committerpprokop <piotr.prokop@intel.com>
Tue, 28 Jun 2016 11:58:26 +0000 (13:58 +0200)
roles/ceph-mon/tasks/docker/start_docker_monitor.yml

index 53533952565f25bf64fdea370dc8f7db036705f0..13cbabb9d5e83eb1fccc62ee2adcd41c2ee030b5 100644 (file)
   become: true
   template:
     src: "{{ role_path }}/templates/ceph-mon.service.j2"
-    dest: /var/lib/ceph/ceph-mon@.service
+    dest: /etc/systemd/system/ceph-mon@.service
     owner: "root"
     group: "root"
     mode: "0644"
   when:  ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
-- name: link systemd unit file for mon instance
-  file:
-    src: /var/lib/ceph/ceph-mon@.service
-    dest: /etc/systemd/system/multi-user.target.wants/ceph-mon@{{ ansible_hostname }}.service
-    state: link
-  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: enable systemd unit file for mon instance
-  shell: systemctl enable /etc/systemd/system/multi-user.target.wants/ceph-mon@{{ ansible_hostname }}.service
+  shell: systemctl enable ceph-mon@{{ ansible_hostname }}.service
   failed_when: false
   changed_when: false
   when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'