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-osd-{{ ansible_hostname }}"
|
|
|
|
when:
|
|
|
|
- containerized_deployment
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include check_mandatory_vars.yml
|
|
|
|
include: check_mandatory_vars.yml
|
2016-11-30 01:14:03 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include pre_requisite.yml
|
|
|
|
include: pre_requisite.yml
|
|
|
|
when:
|
|
|
|
- not containerized_deployment
|
2016-08-17 05:49:30 +08:00
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
2014-03-04 02:08:51 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include ceph_disk_cli_options_facts.yml
|
|
|
|
include: ceph_disk_cli_options_facts.yml
|
2017-07-25 23:54:26 +08:00
|
|
|
|
2017-11-14 18:58:38 +08:00
|
|
|
- name: include build_devices.yml
|
|
|
|
include: build_devices.yml
|
2017-09-28 06:17:12 +08:00
|
|
|
|
|
|
|
- name: check if a partition named 'ceph' exists
|
|
|
|
shell: "parted --script {{ item }} print | egrep -sq '^ 1.*ceph'"
|
|
|
|
with_items:
|
|
|
|
- "{{ devices }}"
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2017-09-28 06:17:12 +08:00
|
|
|
register: parted_results
|
2017-07-25 23:54:26 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include copy_configs.yml
|
|
|
|
include: copy_configs.yml
|
2017-09-11 16:54:03 +08:00
|
|
|
when:
|
|
|
|
- containerized_deployment
|
|
|
|
- not containerized_deployment_with_kv
|
|
|
|
|
2017-11-18 00:32:23 +08:00
|
|
|
- name: include check_gpt.yml
|
|
|
|
include: check_gpt.yml
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include scenarios/collocated.yml
|
|
|
|
include: scenarios/collocated.yml
|
2016-04-01 18:57:58 +08:00
|
|
|
when:
|
2017-07-27 23:05:59 +08:00
|
|
|
- osd_scenario == 'collocated'
|
2016-08-17 05:49:30 +08:00
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
2014-03-04 02:08:51 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include scenarios/non-collocated.yml
|
|
|
|
include: scenarios/non-collocated.yml
|
2016-04-01 18:57:58 +08:00
|
|
|
when:
|
2017-09-28 06:17:12 +08:00
|
|
|
- not osd_auto_discovery
|
2017-07-27 23:05:59 +08:00
|
|
|
- osd_scenario == 'non-collocated'
|
2016-08-17 05:49:30 +08:00
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
2016-07-19 23:53:21 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include scenarios/lvm.yml
|
|
|
|
include: scenarios/lvm.yml
|
2017-07-19 23:05:42 +08:00
|
|
|
when:
|
2017-08-03 23:08:34 +08:00
|
|
|
- osd_scenario == 'lvm'
|
2017-07-19 23:05:42 +08:00
|
|
|
- not containerized_deployment
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include activate_osds.yml
|
|
|
|
include: activate_osds.yml
|
2017-09-13 05:49:11 +08:00
|
|
|
when:
|
|
|
|
- not containerized_deployment
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include start_osds.yml
|
2017-07-26 05:48:13 +08:00
|
|
|
include: start_osds.yml
|
|
|
|
when:
|
|
|
|
- not containerized_deployment
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include docker/main.yml
|
|
|
|
include: docker/main.yml
|
|
|
|
when:
|
|
|
|
- containerized_deployment
|
2016-08-17 05:49:30 +08:00
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|