ceph-ansible/roles/ceph-osd/tasks/main.yml

33 lines
654 B
YAML
Raw Normal View History

---
## Deploy Ceph Oject Storage Daemon(s)
2014-09-05 03:14:11 +08:00
- name: Install dependencies
apt: >
pkg=parted
2014-09-05 03:14:11 +08:00
state=present
when: ansible_os_family == 'Debian'
- name: Install dependencies
yum: >
name=parted
2014-09-05 03:14:11 +08:00
state=present
when: ansible_os_family == 'RedHat'
- name: Copy OSD bootstrap key
copy: >
src=fetch/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring
dest=/var/lib/ceph/bootstrap-osd/ceph.keyring
owner=root
group=root
2014-09-05 03:14:11 +08:00
mode=600
when: cephx
- include: journal_collocation.yml
when: journal_collocation
- include: raw_multi_journal.yml
when: raw_multi_journal
- include: osd_directory.yml
when: osd_directory