Module apt with 'update_cache="yes"' not show stderr for "404 Not Found" errors #23155
Labels
affects_2.2
This issue/PR affects Ansible v2.2
feature
This issue/PR relates to a feature request.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
COMPONENT NAME
apt
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
Is it possible to give the stderr on module apt when it fails to update the cache? When there is a
404 Not Found
error, it always shows"msg": "Failed to update apt cache."
and not the stderr. This is making impossible to usefailed_when
for error handling.STEPS TO REPRODUCE
/etc/apt/sources.list.d/ondrej-php5-precise.list
with this content:EXPECTED RESULTS
A stderr with this content:
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: