We have a fact that detects the package manager, so we can detect if
systemd is used. Radosgw was still using some old logic from Ubuntu.
Ubuntu 16.04 now has systemd so we don't need to configure rgw as it was
running on upstart.
Signed-off-by: Sébastien Han <seb@redhat.com>
args:
creates: /var/run/systemd/generator.late/ceph-radosgw.service
when:
- - ansible_os_family == "RedHat"
+ - use_systemd
- ceph_release_num.{{ ceph_release }} < ceph_release_num.infernalis
- name: activate rados gateway with upstart
- done
- upstart
changed_when: false
- when: ansible_distribution == "Ubuntu"
+ when:
+ - ansible_distribution == "Ubuntu"
+ - not use_systemd
- name: activate rados gateway with sysvinit
file:
- done
- sysvinit
changed_when: false
- when: ansible_distribution != "Ubuntu"
+ when:
+ - ansible_distribution != "Ubuntu"
+ - not use_systemd
- name: generate rados gateway sudoers file
template: