2014-03-04 02:08:51 +08:00
|
|
|
---
|
2017-10-04 16:39:17 +08:00
|
|
|
- name: set_fact docker_exec_cmd
|
|
|
|
set_fact:
|
2018-11-08 17:02:37 +08:00
|
|
|
docker_exec_cmd: "{{ container_binary }} exec ceph-mon-{{ ansible_hostname }}"
|
2017-10-04 16:39:17 +08:00
|
|
|
when:
|
|
|
|
- containerized_deployment
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include deploy_monitors.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: deploy_monitors.yml
|
2017-04-13 01:57:33 +08:00
|
|
|
when: not containerized_deployment
|
2015-01-21 01:43:47 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include start_monitor.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
import_tasks: start_monitor.yml
|
2017-04-13 01:57:33 +08:00
|
|
|
when: not containerized_deployment
|
2015-03-26 22:43:54 +08:00
|
|
|
|
2018-08-10 20:16:30 +08:00
|
|
|
- name: include_tasks ceph_keys.yml
|
|
|
|
include_tasks: ceph_keys.yml
|
2017-04-13 01:57:33 +08:00
|
|
|
when: not containerized_deployment
|
2015-01-21 01:43:47 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include secure_cluster.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: secure_cluster.yml
|
2018-06-08 15:04:49 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
|
|
|
run_once: true
|
2015-06-26 06:26:03 +08:00
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- secure_cluster
|
2015-05-12 17:18:12 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include docker/main.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: docker/main.yml
|
2017-04-13 01:57:33 +08:00
|
|
|
when: containerized_deployment
|
2016-03-10 04:10:47 +08:00
|
|
|
|
2018-02-02 22:12:18 +08:00
|
|
|
- name: crush_rules.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: crush_rules.yml
|
2018-02-02 22:12:18 +08:00
|
|
|
when:
|
|
|
|
- crush_rule_config
|