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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ceph_health.rc != 0
|
|
|
|
- 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:
|
2016-05-02 22:33:16 +08:00
|
|
|
is_atomic: '{{ stat_ostree.stat.exists }}'
|
2016-02-10 01:35:41 +08:00
|
|
|
|
2015-07-28 22:05:35 +08:00
|
|
|
- include: pre_requisite.yml
|
2016-03-29 16:23:31 +08:00
|
|
|
|
2016-05-09 22:08:33 +08:00
|
|
|
# NOTE (jimcurtis): dirs_permissions.yml must precede fetch_configs.yml
|
2016-04-28 01:31:27 +08:00
|
|
|
# because it creates the directories needed by the latter.
|
2016-04-26 23:20:02 +08:00
|
|
|
- include: dirs_permissions.yml
|
|
|
|
|
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: selinux.yml
|
|
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
|
2015-07-28 22:05:35 +08:00
|
|
|
- include: start_docker_osd.yml
|