31 lines
833 B
YAML
31 lines
833 B
YAML
---
|
|
- name: deploy all the needed tools for ceph
|
|
hosts: all
|
|
become: true
|
|
gather_facts: true
|
|
diff: true
|
|
vars:
|
|
ceph_repo: "https://download.ceph.com/debian-squid"
|
|
tasks:
|
|
- name: get gpg key and import it
|
|
command:
|
|
chdir: /tmp
|
|
cmd: "{{ item }}"
|
|
loop:
|
|
- wget -q 'https://download.ceph.com/keys/release.asc' -O release.asc;
|
|
- echo y | gpg -o /usr/share/keyrings/ceph.gpg --dearmor release.asc; # echo y in case of rewriting existing gpg key
|
|
|
|
- name: Add ceph repo
|
|
apt_repository:
|
|
filename: ceph
|
|
repo: "deb [signed-by=/usr/share/keyrings/ceph.gpg] {{ ceph_repo }} jammy main"
|
|
state: present
|
|
|
|
- name: install packages
|
|
apt:
|
|
pkg:
|
|
- cephadm
|
|
- lvm2
|
|
- podman
|
|
- chrony
|
|
state: present |