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
2018-11-16 17:50:38 +08:00
when :
# we test for both container and non-container
- (mon_socket_stat is defined and mon_socket_stat.get('rc') != 0) or (ceph_mon_container_stat is defined and ceph_mon_container_stat.get('stdout_lines', [])|length == 0)
2015-01-21 01:43:47 +08:00
2017-09-15 06:48:53 +08:00
- name : include start_monitor.yml
2018-12-02 21:48:19 +08:00
include_tasks : start_monitor.yml
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
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
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 :
2018-12-13 18:38:23 +08:00
- crush_rule_config