2016-12-09 21:51:35 +08:00
|
|
|
---
|
|
|
|
- name: create ceph conf directory
|
|
|
|
file:
|
|
|
|
path: /etc/ceph
|
|
|
|
state: directory
|
2017-01-20 17:14:35 +08:00
|
|
|
owner: "ceph"
|
|
|
|
group: "ceph"
|
|
|
|
mode: "0755"
|
2016-12-09 21:51:35 +08:00
|
|
|
|
2016-12-08 01:22:39 +08:00
|
|
|
- name: "generate ceph configuration file: {{ cluster }}.conf"
|
2016-12-09 21:51:35 +08:00
|
|
|
action: config_template
|
|
|
|
args:
|
|
|
|
src: ceph.conf.j2
|
|
|
|
dest: /etc/ceph/{{ cluster }}.conf
|
2017-01-20 17:14:35 +08:00
|
|
|
owner: "ceph"
|
|
|
|
group: "ceph"
|
|
|
|
mode: "0644"
|
2016-12-09 21:51:35 +08:00
|
|
|
config_overrides: "{{ ceph_conf_overrides }}"
|
|
|
|
config_type: ini
|
|
|
|
notify:
|
|
|
|
- restart ceph mons
|
|
|
|
- restart ceph osds
|
|
|
|
- restart ceph mdss
|
|
|
|
- restart ceph rgws
|
2016-09-22 23:03:14 +08:00
|
|
|
- restart ceph nfss
|