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

73 lines
1.9 KiB
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 (for or after infernalis release)
file:
path: /var/lib/ceph/bootstrap-osd/
state: directory
owner: ceph
group: ceph
mode: 0755
when:
cephx and
(ceph_stable_release != 'dumpling' or
ceph_stable_release != 'emperor' or
ceph_stable_release != 'firefly' or
ceph_stable_release != 'giant' or
ceph_stable_release != 'hammer')
- name: create bootstrap-osd directory (before infernalis release)
file:
path: /var/lib/ceph/bootstrap-osd/
state: directory
owner: root
group: root
mode: 0755
when:
cephx and
(ceph_stable_release == 'dumpling' or
ceph_stable_release == 'emperor' or
ceph_stable_release == 'firefly' or
ceph_stable_release == 'giant' or
ceph_stable_release == 'hammer')
- name: copy osd bootstrap key (for or after infernalis release)
copy:
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring"
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
owner: ceph
group: ceph
mode: 0600
when:
cephx and
(ceph_stable_release != 'dumpling' or
ceph_stable_release != 'emperor' or
ceph_stable_release != 'firefly' or
ceph_stable_release != 'giant' or
ceph_stable_release != 'hammer')
- name: copy osd bootstrap key (before infernalis release)
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: root
group: root
mode: 600
when:
cephx and
(ceph_stable_release == 'dumpling' or
ceph_stable_release == 'emperor' or
ceph_stable_release == 'firefly' or
ceph_stable_release == 'giant' or
ceph_stable_release == 'hammer')