2017-03-16 17:17:08 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Set_fact container_exec_cmd
|
|
|
|
ansible.builtin.set_fact:
|
2021-03-03 22:43:50 +08:00
|
|
|
container_exec_cmd: "{{ container_binary }} exec ceph-mon-{{ hostvars[item]['ansible_facts']['hostname'] }}"
|
2020-01-15 21:39:16 +08:00
|
|
|
with_items: "{{ groups.get(mon_group_name, []) }}"
|
|
|
|
delegate_to: "{{ item }}"
|
|
|
|
delegate_facts: true
|
|
|
|
run_once: true
|
2019-05-22 16:02:42 +08:00
|
|
|
when: containerized_deployment | bool
|
2017-10-04 16:39:17 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include common.yml
|
|
|
|
ansible.builtin.include_tasks: common.yml
|
2018-04-11 23:15:29 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include pre_requisite.yml
|
|
|
|
ansible.builtin.include_tasks: pre_requisite.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: not containerized_deployment | bool
|
2017-03-16 17:17:08 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include start_mgr.yml
|
|
|
|
ansible.builtin.include_tasks: start_mgr.yml
|
2017-10-16 21:04:23 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include mgr_modules.yml
|
|
|
|
ansible.builtin.include_tasks: mgr_modules.yml
|
2019-03-08 14:56:55 +08:00
|
|
|
when:
|
2021-07-16 03:38:07 +08:00
|
|
|
- ceph_mgr_modules | length > 0
|
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))
|