ceph-rollout/pre-deploy.yml
2024-10-23 19:59:22 +03:00

19 lines
586 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: >
wget -q -O 'https://download.ceph.com/keys/release.asc';
gpg -o /user/share/keyrings/ceph.gpg --dearmor release.asc;
- name: Add ceph repo
apt_repository:
repo: "deb [/usr/share/keyrings/ceph.gpg] {{ ceph-repo }} {{ ansible_distribution_release }} main"
state: present