ansible/ansible — pull request #1678 by dagwieers (2012-11-25 01:45:12+00:00)
Title: The double single-quoting in the message, together with the failed makes up some weird output.

This is reported on the mailinglist, and it felt like the user made a mistake:

failed: [pi] => {"failed": true}
msg: 'apt-get install 'libjna-java' ' failed: E: Sub-process /usr/bin/dpkg returned an error code (2)

Now it wil show:

failed: [pi] => {"failed": true}
msg: Failed to run "apt-get install 'libjna-java' "; E: Sub-process /usr/bin/dpkg returned an error code (2)

Which is marginally better.