mirror of https://github.com/ceph/ceph-ansible.git
rgw: cleanup old code and remove systemd condition
Remove the old check prior systemd. We only support systemd so there is no need to run a condition on systemd. The playbook will fail if systemd is not present. Signed-off-by: Sébastien Han <seb@redhat.com>pull/1838/head
parent
6ae8219018
commit
7ccd10a15e
|
@ -1,18 +1,10 @@
|
||||||
---
|
---
|
||||||
- name: check if rgw is started
|
|
||||||
command: /etc/init.d/radosgw status
|
|
||||||
register: rgwstatus
|
|
||||||
changed_when: false
|
|
||||||
failed_when: false
|
|
||||||
always_run: true
|
|
||||||
|
|
||||||
- name: ensure systemd service override directory exists
|
- name: ensure systemd service override directory exists
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: "/etc/systemd/system/ceph-rgw@.service.d/"
|
path: "/etc/systemd/system/ceph-rgw@.service.d/"
|
||||||
when:
|
when:
|
||||||
- ceph_rgw_systemd_overrides is defined
|
- ceph_rgw_systemd_overrides is defined
|
||||||
- ansible_service_mgr == 'systemd'
|
|
||||||
|
|
||||||
- name: add ceph-rgw systemd service overrides
|
- name: add ceph-rgw systemd service overrides
|
||||||
config_template:
|
config_template:
|
||||||
|
@ -22,7 +14,6 @@
|
||||||
config_type: "ini"
|
config_type: "ini"
|
||||||
when:
|
when:
|
||||||
- ceph_rgw_systemd_overrides is defined
|
- ceph_rgw_systemd_overrides is defined
|
||||||
- ansible_service_mgr == 'systemd'
|
|
||||||
|
|
||||||
- name: start rgw
|
- name: start rgw
|
||||||
service:
|
service:
|
||||||
|
|
Loading…
Reference in New Issue