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/547396 /git.openstack. org/cgit/ openstack/ openstack- ansible- rabbitmq_ server/ commit/ ?id=44f63d92dc3 d0555dcf2c8ff58 7f4c4e09b10fdc
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 44f63d92dc3d055 5dcf2c8ff587f4c 4e09b10fdc
Author: Jesse Pretorius <email address hidden>
Date: Thu Feb 22 14:48:19 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.
Backport includes: https:/ /review. openstack. org/547471
Change-Id: Id059dbec3466cb 1ef3ea567249f52 384a8ade515 6449f3b1f38f07f b4914aa298)
Partial-Bug: #1750656
(cherry picked from commit 23bd341129bc9fc