Removing symblic links and fixing systemctl enable on CoreOS

pull/866/head
pprokop 2016-06-28 13:58:26 +02:00
parent e5eeea3556
commit 6b9653c897
1 changed files with 2 additions and 8 deletions

View File

@ -45,21 +45,15 @@
become: true become: true
template: template:
src: "{{ role_path }}/templates/ceph-mon.service.j2" src: "{{ role_path }}/templates/ceph-mon.service.j2"
dest: /var/lib/ceph/ceph-mon@.service dest: /etc/systemd/system/ceph-mon@.service
owner: "root" owner: "root"
group: "root" group: "root"
mode: "0644" mode: "0644"
when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS' 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 - 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 failed_when: false
changed_when: false changed_when: false
when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS' when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'