ansible/ansible — pull request #6000 by andreasf (2014-02-13 20:06:52+00:00)
Title: service: use `systemctl list-units` in addition to `list-unit-files`

The service module checks for the presence of a service before issuing
a command on it, e.g. before starting the service. On systemd systems, the list
of available services is currently retrieved with `systemctl list-unit-files`.
Because LSB-defined services in /etc/init.d don't have unit files, they are not
part of this list. This commit adds an additional call to `systemctl
list-units`, to add support for LSB services.