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: I3a346bec7b5656d780416054fbaa6e322b6216f2
Partial-Bug: #1750656
(cherry picked from commit c68db4e674e744f4e75841de801731f3de5da8fa)
Reviewed: https:/ /review. openstack. org/547448 /git.openstack. org/cgit/ openstack/ openstack- ansible- pip_install/ commit/ ?id=c0fc932d6ea 9984777bf318482 7fd82bfbd5191f
Committed: https:/
Submitter: Zuul
Branch: stable/newton
commit c0fc932d6ea9984 777bf3184827fd8 2bfbd5191f
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 4e75841de801731 f3de5da8fa)
Partial-Bug: #1750656
(cherry picked from commit c68db4e674e744f