Signed-off-by: Huamin Chen <hchen@redhat.com>
not is_ceph_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@{{ ansible_hostname }}.service state=link
+ file:
+ src: /usr/lib/systemd/system/ceph-mon@.service
+ dest: /etc/systemd/system/multi-user.target.wants/ceph-mon@{{ ansible_hostname }}.service
+ state: link
changed_when: false
failed_when: false
when:
is_ceph_infernalis
- name: enable osd service instance(s) (for or after infernalis)
- file: src=/usr/lib/systemd/system/ceph-osd@.service dest=/etc/systemd/system/multi-user.target.wants/ceph-osd@{{ item }}.service state=link
+ file:
+ src: /usr/lib/systemd/system/ceph-osd@.service
+ dest: /etc/systemd/system/multi-user.target.wants/ceph-osd@{{ item }}.service
+ state: link
with_items: osd_id.stdout_lines
failed_when: false
when: