ceph-ansible/roles/ceph-rbd-mirror/tasks
Dimitri Savineau c8d0c4722c rbd-mirror: fail if the peer is not added
Due the 'failed_when: false' statement present in the peer task then
the playbook continues to ran even if the peer task was failing (like
incorrect remote peer format.

"stderr": "rbd: invalid spec 'admin@cluster1'"

This patch adds a task to list the peer present and add the peer only if
it's not already added. With this we don't need the failed_when statement
anymore.

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

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 0b1e9c0737)
2019-10-16 14:01:18 -04:00
..
docker remove jewel support 2018-10-12 23:38:17 +00:00
common.yml rbd-mirror: Allow to copy the admin keyring 2019-09-10 16:38:48 -04:00
configure_mirroring.yml rbd-mirror: fail if the peer is not added 2019-10-16 14:01:18 -04:00
main.yml rbd-mirror: configure pool and peer 2019-09-09 12:13:24 -04:00
pre_requisite.yml remove jewel support 2018-10-12 23:38:17 +00:00
start_rbd_mirror.yml rbd-mirror: enable ceph-rbd-mirror.target 2018-11-09 16:48:35 +01:00