ceph-ansible/roles/ceph-mon/tasks/main.yml

36 lines
868 B
YAML
Raw Normal View History

---
- name: set_fact docker_exec_cmd
set_fact:
docker_exec_cmd: "docker exec ceph-mon-{{ ansible_hostname }}"
when:
- containerized_deployment
- name: include deploy_monitors.yml
include_tasks: deploy_monitors.yml
when: not containerized_deployment
- name: include start_monitor.yml
import_tasks: start_monitor.yml
when: not containerized_deployment
- name: include_tasks ceph_keys.yml
include_tasks: ceph_keys.yml
when: not containerized_deployment
- name: include secure_cluster.yml
include_tasks: secure_cluster.yml
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: true
when:
- secure_cluster
- not containerized_deployment
- name: include docker/main.yml
include_tasks: docker/main.yml
when: containerized_deployment
- name: crush_rules.yml
include_tasks: crush_rules.yml
when:
- crush_rule_config