Only set exclude_perf_counts on Debian 12+

This commit is contained in:
Joshua Boniface 2023-12-10 12:43:34 -05:00
parent 09eba9de80
commit b2a7eecf2c
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@
command: ceph config set mgr mgr/prometheus/exclude_perf_counters false command: ceph config set mgr mgr/prometheus/exclude_perf_counters false
run_once: yes run_once: yes
ignore_errors: yes ignore_errors: yes
when: debian_version|int >= 12
- name: create mgr auth keyring - 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 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