--- - 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 when: not containerized_deployment | bool block: - name: include start_rbd_mirror.yml include_tasks: start_rbd_mirror.yml - name: include configure_mirroring.yml include_tasks: configure_mirroring.yml when: ceph_rbd_mirror_configure | 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