ceph-ansible/roles/ceph-rbd-mirror
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
..
defaults rbd-mirror: configure pool and peer 2019-09-09 12:13:24 -04:00
meta ceph-rbd-mirror: Add support for openSUSE Leap distributions 2017-11-14 10:51:23 +00:00
tasks rbd-mirror: fail if the peer is not added 2019-10-16 14:01:18 -04:00
templates Avoid using tests as filter 2018-10-10 04:26:33 +00:00
LICENSE ceph-rbd-mirorr: add license file 2016-04-08 12:17:46 +02:00
README.md Cleanup readme files in roles directories 2017-10-17 11:22:06 +02:00

README.md

Ansible role: ceph-rbd

Documentation is available at http://docs.ceph.com/ceph-ansible/.