Retry msgr2 enabling 6 times

This will sometimes fail, so retry it several times
This commit is contained in:
Joshua Boniface 2023-09-01 15:42:25 -04:00
parent a77e41bf7c
commit e9f08ad100
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@
- name: set msgr2 enabled
command: ceph mon enable-msgr2
run_once: true
retries: 6
delay: 5
register: result
until: result.rc == 0
- 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