From b2a7eecf2c1938124f13545004d61eff224bddfa Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 10 Dec 2023 12:43:34 -0500 Subject: [PATCH] Only set exclude_perf_counts on Debian 12+ --- roles/pvc/tasks/ceph/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/pvc/tasks/ceph/main.yml b/roles/pvc/tasks/ceph/main.yml index d5d2b6f..73f2999 100644 --- a/roles/pvc/tasks/ceph/main.yml +++ b/roles/pvc/tasks/ceph/main.yml @@ -130,6 +130,7 @@ command: ceph config set mgr mgr/prometheus/exclude_perf_counters false run_once: yes ignore_errors: yes + when: debian_version|int >= 12 - name: create mgr auth keyring command: ceph auth get-or-create mgr.{{ ansible_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' --out-file /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring