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
Sébastien Han 2017-08-31 08:29:30 +02:00
parent 6ae8219018
commit 7ccd10a15e
1 changed files with 0 additions and 9 deletions

View File

@ -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
file:
state: directory
path: "/etc/systemd/system/ceph-rgw@.service.d/"
when:
- ceph_rgw_systemd_overrides is defined
- ansible_service_mgr == 'systemd'
- name: add ceph-rgw systemd service overrides
config_template:
@ -22,7 +14,6 @@
config_type: "ini"
when:
- ceph_rgw_systemd_overrides is defined
- ansible_service_mgr == 'systemd'
- name: start rgw
service: