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

33 lines
713 B
YAML
Raw Normal View History

---
- name: install dependencies
2015-10-19 09:24:47 +08:00
apt:
pkg: parted
state: present
when: ansible_os_family == 'Debian'
- name: install dependencies
2015-10-19 09:24:47 +08:00
yum:
name: parted
state: present
when: ansible_os_family == 'RedHat'
- name: create bootstrap-osd directory
file:
path: /var/lib/ceph/bootstrap-osd/
state: directory
owner: "{{ dir_owner }}"
group: "{{ dir_group }}"
mode: "{{ dir_mode }}"
when:
cephx
- name: copy osd bootstrap key
2015-10-19 09:24:47 +08:00
copy:
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring"
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
owner: "{{ key_owner }}"
group: "{{ key_group }}"
mode: "{{ key_mode }}"
when:
cephx