mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 18:53:12 +00:00
When running the service module via sudo, `$PATH` didn't contain `/sbin`, so the service binary couldn't be found. This just runs `/sbin/service` directly. Output is spewed to stderr on error. Added `list=status` to include the output of `service <cmd> status`.