2014-03-04 02:08:51 +08:00
---
2017-10-04 16:39:17 +08:00
- name : set_fact docker_exec_cmd
set_fact :
docker_exec_cmd : "docker exec ceph-mon-{{ ansible_hostname }}"
when :
- containerized_deployment
2017-09-15 06:48:53 +08:00
- name : include deploy_monitors.yml
include : 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
include : start_monitor.yml
2017-04-13 01:57:33 +08:00
when : not containerized_deployment
2015-03-26 22:43:54 +08:00
2017-09-15 06:48:53 +08:00
- name : include ceph_keys.yml
include : ceph_keys.yml
2017-04-13 01:57:33 +08:00
when : not containerized_deployment
2016-12-01 05:06:06 +08:00
# this avoids the bug mentioned here: https://github.com/ansible/ansible/issues/18206
static : no
2015-01-21 01:43:47 +08:00
2017-09-15 06:48:53 +08:00
- name : include secure_cluster.yml
include : secure_cluster.yml
2015-06-26 06:26:03 +08:00
when :
2016-05-09 22:08:33 +08:00
- secure_cluster
2017-04-13 01:57:33 +08:00
- not containerized_deployment
2015-05-12 17:18:12 +08:00
2017-09-15 06:48:53 +08:00
- name : include docker/main.yml
include : 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
include : crush_rules.yml
when :
- crush_rule_config
2017-10-03 19:55:27 +08:00
- name : include set_osd_pool_default_pg_num.yml
include : set_osd_pool_default_pg_num.yml
2018-04-10 21:39:44 +08:00
- name : set_fact openstack_keys_tmp - preserve backward compatibility after the introduction of the ceph_keys module
set_fact :
openstack_keys_tmp : "{{ openstack_keys_tmp|default([]) + [ { 'key': item.key, 'name': item.name, 'caps': { 'mon': item.mon_cap, 'osd': item.osd_cap|default(''), 'mds': item.mds_cap|default(''), 'mgr': item.mgr_cap|default('') } , 'mode': item.mode } ] }}"
with_items : "{{ openstack_keys }}"
when :
- item.get('mon_cap', None) # it's enough to assume we are running an old-fashionned syntax simply by checking the presence of mon_cap since every key needs this cap
- name : set_fact keys - override keys_tmp with keys
set_fact :
openstack_keys : "{{ openstack_keys_tmp }}"
when :
- openstack_keys_tmp is defined
2017-10-03 19:55:27 +08:00
# 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
2017-09-27 20:13:39 +08:00
- 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
2017-09-15 06:48:53 +08:00
- name : include calamari.yml
include : calamari.yml
2016-03-10 04:10:47 +08:00
when : calamari