2016-04-04 06:35:09 +08:00
|
|
|
---
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include pre_requisite.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: pre_requisite.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: not containerized_deployment | bool
|
2016-07-12 18:15:22 +08:00
|
|
|
|
2018-12-10 22:30:48 +08:00
|
|
|
- name: include common.yml
|
|
|
|
include_tasks: common.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: cephx | bool
|
2018-12-10 22:30:48 +08:00
|
|
|
|
2019-04-24 17:19:04 +08:00
|
|
|
- name: tasks for non-containerized deployment
|
2019-09-05 02:35:20 +08:00
|
|
|
include_tasks: start_rbd_mirror.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: not containerized_deployment | bool
|
2016-07-12 18:15:22 +08:00
|
|
|
|
2019-04-24 17:19:04 +08:00
|
|
|
- name: tasks for containerized deployment
|
2019-05-22 16:02:42 +08:00
|
|
|
when: containerized_deployment | bool
|
2019-04-24 17:19:04 +08:00
|
|
|
block:
|
2019-05-14 20:51:32 +08:00
|
|
|
- name: set_fact container_exec_cmd
|
2019-04-24 17:19:04 +08:00
|
|
|
set_fact:
|
2019-05-14 20:51:32 +08:00
|
|
|
container_exec_cmd: "{{ container_binary }} exec ceph-rbd-mirror-{{ ansible_hostname }}"
|
2019-04-24 17:19:04 +08:00
|
|
|
|
2019-07-24 16:44:34 +08:00
|
|
|
- name: include container/main.yml
|
|
|
|
include_tasks: container/main.yml
|
2019-09-05 02:35:20 +08:00
|
|
|
|
|
|
|
- name: include configure_mirroring.yml
|
|
|
|
include_tasks: configure_mirroring.yml
|
|
|
|
when: ceph_rbd_mirror_configure | bool
|