This commit is contained in:
Hrankin, Aleksandr (contracted)
2026-02-19 11:34:13 +00:00
commit f243f440c3
191 changed files with 6183 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
---
- name: apt update
ansible.builtin.apt:
update_cache: true
- name: apt upgrade
ansible.builtin.apt:
upgrade: dist
- name: install base packages
ansible.builtin.apt:
name:
- ca-certificates
- curl
- gnupg
- lvm2
- podman
state: present
- name: swapoff
ansible.builtin.command: swapoff -a
changed_when: true
- name: comment swap in /etc/fstab
ansible.builtin.replace:
path: /etc/fstab
regexp: '^([^#].*\s+swap\s+.*)$'
replace: '# \1'
- name: install cephadm and ceph-common
ansible.builtin.apt:
name:
- cephadm
- ceph-common
state: present
- name: cephadm version
ansible.builtin.command: cephadm version
changed_when: false
- name: ceph -v
ansible.builtin.command: ceph -v
changed_when: false