ceph-ansible/roles/ceph-rbd-mirror/tasks/main.yml

27 lines
773 B
YAML
Raw Normal View History

---
- name: include pre_requisite.yml
include_tasks: pre_requisite.yml
when: not containerized_deployment | bool
- name: include common.yml
include_tasks: common.yml
when: cephx | bool
- name: tasks for non-containerized deployment
include_tasks: start_rbd_mirror.yml
when: not containerized_deployment | bool
- name: tasks for containerized deployment
when: containerized_deployment | bool
block:
- name: set_fact container_exec_cmd
set_fact:
container_exec_cmd: "{{ container_binary }} exec ceph-rbd-mirror-{{ ansible_hostname }}"
- name: include container/main.yml
include_tasks: container/main.yml
- name: include configure_mirroring.yml
include_tasks: configure_mirroring.yml
when: ceph_rbd_mirror_configure | bool