2015-01-21 01:43:47 +08:00
|
|
|
---
|
2017-07-05 21:47:48 +08:00
|
|
|
- name: ensure systemd service override directory exists
|
|
|
|
file:
|
|
|
|
state: directory
|
|
|
|
path: "/etc/systemd/system/ceph-rgw@.service.d/"
|
|
|
|
when:
|
|
|
|
- ceph_rgw_systemd_overrides is defined
|
|
|
|
|
|
|
|
- name: add ceph-rgw systemd service overrides
|
|
|
|
config_template:
|
|
|
|
src: "ceph-rgw.service.d-overrides.j2"
|
2017-08-30 00:24:52 +08:00
|
|
|
dest: "/etc/systemd/system/ceph-radosgw@.service.d/ceph-radosgw-systemd-overrides.conf"
|
2017-07-05 21:47:48 +08:00
|
|
|
config_overrides: "{{ ceph_rgw_systemd_overrides | default({}) }}"
|
|
|
|
config_type: "ini"
|
|
|
|
when:
|
|
|
|
- ceph_rgw_systemd_overrides is defined
|
|
|
|
|
2015-07-07 17:19:50 +08:00
|
|
|
- name: start rgw
|
2015-11-21 05:34:29 +08:00
|
|
|
service:
|
2016-03-18 01:34:56 +08:00
|
|
|
name: ceph-radosgw@rgw.{{ ansible_hostname }}
|
2015-11-21 05:34:29 +08:00
|
|
|
state: started
|
|
|
|
enabled: yes
|