deep_scrub_choked

This commit is contained in:
a.pivkin
2026-04-06 07:08:17 +03:00
commit 9149dc1d7f
840 changed files with 52471 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
---
- name: Lookup keys in /etc/ceph
ansible.builtin.shell: ls -1 /etc/ceph/*.keyring
changed_when: false
register: ceph_keys
- name: Create a local fetch directory if it does not exist
ansible.builtin.file:
path: "{{ fetch_directory }}"
state: directory
mode: "0755"
delegate_to: localhost
become: false
- name: Copy ceph user and bootstrap keys to the ansible server
ansible.builtin.fetch:
src: "{{ item }}"
dest: "{{ fetch_directory }}/{{ fsid }}/{{ item }}"
flat: true
fail_on_missing: false
run_once: true
with_items:
- "{{ ceph_keys.stdout_lines }}"
- "/var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring"
- "/var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring"
- "/var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring"
- "/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
- "/var/lib/ceph/bootstrap-mgr/{{ cluster }}.keyring"