From 6b9653c897b815a39d20f6748f282583a0bad4f6 Mon Sep 17 00:00:00 2001 From: pprokop Date: Tue, 28 Jun 2016 13:58:26 +0200 Subject: [PATCH] Removing symblic links and fixing systemctl enable on CoreOS --- roles/ceph-mon/tasks/docker/start_docker_monitor.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/roles/ceph-mon/tasks/docker/start_docker_monitor.yml b/roles/ceph-mon/tasks/docker/start_docker_monitor.yml index 535339525..13cbabb9d 100644 --- a/roles/ceph-mon/tasks/docker/start_docker_monitor.yml +++ b/roles/ceph-mon/tasks/docker/start_docker_monitor.yml @@ -45,21 +45,15 @@ 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'