ceph-ansible/roles/ceph-rbd-mirror
Dimitri Savineau 35963194a7 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:06 -04:00
..
defaults global: remove fetch_directory dependency 2019-09-26 16:21:54 +02:00
meta meta: set the right minimum ansible version required for galaxy 2018-12-11 09:59:25 +01:00
tasks rbd-mirror: fail if the peer is not added 2019-10-16 14:01:06 -04:00
templates containers: improve logging 2019-07-02 11:27:34 -04: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/.