diff --git a/roles/ceph-rgw/tasks/pre_requisite.yml b/roles/ceph-rgw/tasks/pre_requisite.yml index 44140dc1d..c4306ed27 100644 --- a/roles/ceph-rgw/tasks/pre_requisite.yml +++ b/roles/ceph-rgw/tasks/pre_requisite.yml @@ -41,6 +41,14 @@ group: "{{ key_group }}" when: cephx +- name: ensure ceph-radosgw systemd unit file is present + command: chkconfig --add ceph-radosgw + args: + creates: /var/run/systemd/generator.late/ceph-radosgw.service + when: + - ansible_os_family == "RedHat" + - is_before_infernalis + - name: activate rados gateway with upstart file: path: /var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}/{{ item }}