]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw: cleanup old code and remove systemd condition
authorSébastien Han <seb@redhat.com>
Thu, 31 Aug 2017 06:29:30 +0000 (08:29 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 31 Aug 2017 06:29:30 +0000 (08:29 +0200)
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>
roles/ceph-rgw/tasks/start_radosgw.yml

index 96e806fe9719b28338d1df431d615420abce0dda..cdb40666e12ce836eef8c09218183371ac0cb301 100644 (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: