mirror of https://github.com/ceph/ceph-ansible.git
10 lines
488 B
YAML
10 lines
488 B
YAML
---
|
|
- name: enable mirroring on the pool
|
|
command: "{{ container_exec_cmd | default('') }} rbd --cluster {{ cluster }} mirror pool enable {{ ceph_rbd_mirror_pool }} {{ ceph_rbd_mirror_mode }}"
|
|
changed_when: false
|
|
|
|
- name: add a mirroring peer
|
|
command: "{{ container_exec_cmd | default('') }} rbd --cluster {{ cluster }} mirror pool peer add {{ ceph_rbd_mirror_pool }} {{ ceph_rbd_mirror_remote_user }}@{{ ceph_rbd_mirror_remote_cluster }}"
|
|
changed_when: false
|
|
failed_when: false
|