instant_osd/ansible_role/roles/ceph_osd_host/tasks/main.yml

32 lines
779 B
YAML
Raw Normal View History

2024-07-20 18:29:29 +00:00
---
# Prep a cloud-init'ed VM to act as a ceph OSD node.
# See the README file at the root of this role.
# 2024-07019, Tim Holloway <timh@mousetech.com>
- name: Install ceph RPM repo
dnf:
name: centos-release-ceph-pacific
state: latest
- name: Install cephadm
dnf:
name: cephadm
state: latest
- name: Install Ceph admin node's ssh key
ansible.posix.authorized_key:
user: root
state: present
key: "{{ admin_server_key }}"
# ideally, key is in vault.
- name: Copy in ceph config files
unarchive:
src: ceph.cfg.tgz
dest: /etc
- name: Run cephadm to make it do initial container pull and setup
shell:
cmd: /usr/sbin/cephadm pull