mirror of https://github.com/ceph/ceph-ansible.git
23 lines
782 B
YAML
23 lines
782 B
YAML
---
|
|
- name: set_fact docker_exec_cmd
|
|
set_fact:
|
|
docker_exec_cmd_mgr: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}"
|
|
when:
|
|
- containerized_deployment
|
|
|
|
- name: include common.yml
|
|
include_tasks: common.yml
|
|
|
|
- name: include pre_requisite.yml
|
|
include_tasks: pre_requisite.yml
|
|
when: not containerized_deployment
|
|
|
|
- name: include start_mgr.yml
|
|
include_tasks: start_mgr.yml
|
|
|
|
- name: include mgr_modules.yml
|
|
include_tasks: mgr_modules.yml
|
|
when:
|
|
- ceph_mgr_modules | length > 0
|
|
- ((groups[mgr_group_name] | default([]) | length == 0 and inventory_hostname == groups[mon_group_name] | last) or
|
|
(groups[mgr_group_name] | default([]) | length > 0 and inventory_hostname == groups[mgr_group_name] | last)) |