mirror of https://github.com/ceph/ceph-ansible.git
35 lines
1015 B
YAML
35 lines
1015 B
YAML
---
|
|
- name: set_fact docker_exec_cmd
|
|
set_fact:
|
|
docker_exec_cmd: "{{ container_binary }} exec ceph-mon-{{ ansible_hostname }}"
|
|
when:
|
|
- containerized_deployment
|
|
|
|
- name: include deploy_monitors.yml
|
|
include_tasks: deploy_monitors.yml
|
|
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)
|
|
|
|
- name: include start_monitor.yml
|
|
include_tasks: start_monitor.yml
|
|
|
|
- name: include_tasks ceph_keys.yml
|
|
include_tasks: ceph_keys.yml
|
|
|
|
- name: include secure_cluster.yml
|
|
include_tasks: secure_cluster.yml
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
|
run_once: true
|
|
when:
|
|
- secure_cluster
|
|
|
|
- name: crush_rules.yml
|
|
include_tasks: crush_rules.yml
|
|
when:
|
|
- crush_rule_config
|
|
|
|
- name: include configure_ceph_command_aliases.yml
|
|
include_tasks: configure_ceph_command_aliases.yml
|
|
when:
|
|
- containerized_deployment |