2015-07-28 22:05:35 +08:00
|
|
|
---
|
2015-10-21 08:12:43 +08:00
|
|
|
- name: check if a cluster is already running
|
|
|
|
shell: "docker ps | grep -sq 'ceph/daemon'"
|
|
|
|
register: ceph_health
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
|
|
|
|
|
|
|
- include: checks.yml
|
2016-04-01 18:57:58 +08:00
|
|
|
when:
|
|
|
|
ceph_health.rc != 0 and
|
|
|
|
not osd_containerized_deployment_with_kv
|
2015-10-21 08:12:43 +08:00
|
|
|
|
2016-02-10 01:35:41 +08:00
|
|
|
- name: check if it is Atomic host
|
|
|
|
stat: path=/run/ostree-booted
|
|
|
|
register: stat_ostree
|
|
|
|
|
|
|
|
- name: set fact for using Atomic host
|
|
|
|
set_fact:
|
|
|
|
is_atomic='{{ stat_ostree.stat.exists }}'
|
|
|
|
|
2015-07-28 22:05:35 +08:00
|
|
|
- include: pre_requisite.yml
|
2016-03-29 16:23:31 +08:00
|
|
|
|
2015-07-28 22:05:35 +08:00
|
|
|
- include: fetch_configs.yml
|
2016-03-29 16:23:31 +08:00
|
|
|
when: not osd_containerized_deployment_with_kv
|
|
|
|
|
2016-04-01 17:18:40 +08:00
|
|
|
- include: dirs_permissions.yml
|
|
|
|
|
|
|
|
- include: selinux.yml
|
|
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
|
2015-07-28 22:05:35 +08:00
|
|
|
- include: start_docker_osd.yml
|