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.
Reviewed: https:/ /review. openstack. org/547021 /git.openstack. org/cgit/ openstack/ openstack- ansible- pip_install/ commit/ ?id=c68db4e674e 744f4e75841de80 1731f3de5da8fa
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit c68db4e674e744f 4e75841de801731 f3de5da8fa
Author: Jesse Pretorius <email address hidden>
Date: Thu Feb 22 15:00:41 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: I3a346bec7b5656 d780416054fbaa6 e322b6216f2
Partial-Bug: #1750656