rbd-mirror: add rx peer only once

in order to avoid the following error:

```
multiple RX peers are not currently supported
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2037646

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit aa64747cd1)
pull/7423/head
Guillaume Abrioux 2022-09-13 16:54:22 +02:00
parent 4947c87d2e
commit 74922b075d
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@
changed_when: false
delegate_to: "{{ groups[mon_group_name][0] }}"
loop: "{{ mirror_peer.results }}"
run_once: true
when: ceph_rbd_mirror_remote_user not in item.stdout
- name: rm temporary file