ansible/ansible — pull request #268 by jkleint (2012-04-27 14:44:26+00:00)
Title: Get service module working with sudo, add state=status, better error messages.

When running the service module via sudo, `$PATH` wouldn't contain `/sbin`, so the service
binary couldn't be found. This tacks `/sbin` onto the path before running service. It
also includes the stdout and stderr on failure. Added `state=status` (doesn't make the most
sense, I agree ;) that shows the output of `service status`.