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/7347/head v4.0.70.18
Guillaume Abrioux 2022-09-13 16:54:22 +02:00
parent cf36d5e8e8
commit 5a47840044
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,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