]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rbd-mirror: add rx peer only once
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 13 Sep 2022 14:54:22 +0000 (16:54 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 14 Sep 2022 07:32:39 +0000 (09:32 +0200)
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>
roles/ceph-rbd-mirror/tasks/configure_mirroring.yml

index 07d01b35d44ee770d5dd712230110b9b5710e8c6..c83d17d41654d27e2bde8a2cf3ad0ebe25738b77 100644 (file)
       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