Fix cache update after initial apt_repository fail
If apt_repository fails to update the apt cache after updating the
configuration, retries don't register there was a change and so no
attempt is made to update the cache by the module on the second attempt.
This failure can result in a failure to install packages.
This change adds an apt module task to update the cache if the
apt_repository task registers a change. This means updating the cache
will get retried on failure and no longer fail silently.
Change-Id: I43bd89e9bd5e2094eb0c138e17045ea64cd62c4d
Partial-Bug: #1750656
(cherry picked from commit db7093684666282d9890eb564b7424ab4ae3cf75)
Reviewed: https:/ /review. openstack. org/547400 /git.openstack. org/cgit/ openstack/ openstack- ansible- ceph_client/ commit/ ?id=6dd85991b2d 052b58305a0ebb6 984d9b29c263d9
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 6dd85991b2d052b 58305a0ebb6984d 9b29c263d9
Author: Jesse Pretorius <email address hidden>
Date: Thu Feb 22 14:23:47 2018 +0000
Fix cache update after initial apt_repository fail
If apt_repository fails to update the apt cache after updating the
configuration, retries don't register there was a change and so no
attempt is made to update the cache by the module on the second attempt.
This failure can result in a failure to install packages.
This change adds an apt module task to update the cache if the
apt_repository task registers a change. This means updating the cache
will get retried on failure and no longer fail silently.
Change-Id: I43bd89e9bd5e20 94eb0c138e17045 ea64cd62c4d d9890eb564b7424 ab4ae3cf75)
Partial-Bug: #1750656
(cherry picked from commit db7093684666282