mirror of https://github.com/ceph/ceph-ansible.git
30 lines
603 B
YAML
30 lines
603 B
YAML
---
|
|
- name: install dependencies
|
|
apt:
|
|
pkg: parted
|
|
state: present
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- name: install dependencies
|
|
yum:
|
|
name: parted
|
|
state: present
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: create bootstrap-osd
|
|
file:
|
|
path: /var/lib/ceph/bootstrap-osd/
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: 600
|
|
|
|
- name: copy osd bootstrap key
|
|
copy:
|
|
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring"
|
|
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
|
|
owner: root
|
|
group: root
|
|
mode: 600
|
|
when: cephx
|