2017-03-16 17:17:08 +08:00
|
|
|
---
|
2019-05-14 20:51:32 +08:00
|
|
|
- name: set_fact container_exec_cmd
|
2017-10-04 16:39:17 +08:00
|
|
|
set_fact:
|
2019-05-14 20:51:32 +08:00
|
|
|
container_exec_cmd_mgr: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}"
|
2019-04-01 23:46:15 +08:00
|
|
|
when: containerized_deployment
|
2017-10-04 16:39:17 +08:00
|
|
|
|
2018-04-11 23:15:29 +08:00
|
|
|
- name: include common.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: common.yml
|
2018-04-11 23:15:29 +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
|
2017-04-13 01:57:33 +08:00
|
|
|
when: not containerized_deployment
|
2017-03-16 17:17:08 +08:00
|
|
|
|
2018-12-06 20:58:37 +08:00
|
|
|
- name: include start_mgr.yml
|
2018-12-03 18:15:30 +08:00
|
|
|
include_tasks: start_mgr.yml
|
2017-10-16 21:04:23 +08:00
|
|
|
|
2018-12-06 20:58:37 +08:00
|
|
|
- name: include mgr_modules.yml
|
|
|
|
include_tasks: mgr_modules.yml
|
2019-03-08 14:56:55 +08:00
|
|
|
when:
|
2018-12-06 02:59:47 +08:00
|
|
|
- ceph_mgr_modules | length > 0 or dashboard_enabled
|
2019-04-08 19:56:01 +08:00
|
|
|
- ((groups[mgr_group_name] | default([]) | length == 0 and inventory_hostname == groups[mon_group_name] | last) or
|
2019-04-01 23:46:15 +08:00
|
|
|
(groups[mgr_group_name] | default([]) | length > 0 and inventory_hostname == groups[mgr_group_name] | last))
|