mirror of https://github.com/ceph/ceph-ansible.git
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
---
|
|
- name: set_fact docker_exec_cmd
|
|
set_fact:
|
|
docker_exec_cmd: "docker exec ceph-mon-{{ ansible_hostname }}"
|
|
when:
|
|
- containerized_deployment
|
|
|
|
- name: include check_mandatory_vars.yml
|
|
include: check_mandatory_vars.yml
|
|
|
|
- name: include deploy_monitors.yml
|
|
include: deploy_monitors.yml
|
|
when: not containerized_deployment
|
|
|
|
- name: include start_monitor.yml
|
|
include: start_monitor.yml
|
|
when: not containerized_deployment
|
|
|
|
- name: include ceph_keys.yml
|
|
include: ceph_keys.yml
|
|
when: not containerized_deployment
|
|
# this avoids the bug mentioned here: https://github.com/ansible/ansible/issues/18206
|
|
static: no
|
|
|
|
- name: include secure_cluster.yml
|
|
include: secure_cluster.yml
|
|
when:
|
|
- secure_cluster
|
|
- not containerized_deployment
|
|
|
|
- name: include docker/main.yml
|
|
include: docker/main.yml
|
|
when: containerized_deployment
|
|
|
|
- name: include set_osd_pool_default_pg_num.yml
|
|
include: set_osd_pool_default_pg_num.yml
|
|
|
|
# Create the pools listed in openstack_pools
|
|
- name: include openstack_config.yml
|
|
include: openstack_config.yml
|
|
when:
|
|
- openstack_config
|
|
- inventory_hostname == groups[mon_group_name] | last
|
|
|
|
# CEPH creates the rbd pool during the ceph cluster initialization in
|
|
# releases prior to luminous. If the rbd_pool.yml playbook is called too
|
|
# early, the rbd pool does not exist yet.
|
|
- name: include rbd_pool.yml
|
|
include: rbd_pool.yml
|
|
when: ceph_release_num.{{ ceph_release }} < ceph_release_num.luminous
|
|
|
|
- name: include create_mds_filesystems.yml
|
|
include: create_mds_filesystems.yml
|
|
when:
|
|
- groups[mds_group_name] is defined
|
|
- groups[mds_group_name]|length > 0
|
|
- inventory_hostname == groups[mon_group_name] | last
|
|
|
|
- name: include calamari.yml
|
|
include: calamari.yml
|
|
when: calamari
|