This rule is designed to prevent the Ansible module `apt_repository`
from being used to update the APT cache. There is a bug [1] in
`apt_repository` that prevents cache updates from being performed
whenever the module is retried. If the cache update fails at the first
attempt, it is skipped on the subsequent attempt of the task causing the
task to always complete successfully. Until this bug is addressed this
rule should prevent it from being introduced into OpenStack-Ansible.
Reviewed: https:/ /review. openstack. org/550596 /git.openstack. org/cgit/ openstack/ openstack- ansible- tests/commit/ ?id=af8ecc5ae60 884b27c3c9a71ac 8b3d274e83d9b6
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit af8ecc5ae60884b 27c3c9a71ac8b3d 274e83d9b6
Author: git-harry <email address hidden>
Date: Fri Feb 23 16:10:20 2018 +0000
Add ansible-lint rule for apt_repository
This rule is designed to prevent the Ansible module `apt_repository` repository` that prevents cache updates from being performed
from being used to update the APT cache. There is a bug [1] in
`apt_
whenever the module is retried. If the cache update fails at the first
attempt, it is skipped on the subsequent attempt of the task causing the
task to always complete successfully. Until this bug is addressed this
rule should prevent it from being introduced into OpenStack-Ansible.
Partial-bug: 1750656
[1] https:/ /github. com/ansible/ ansible/ issues/ 36605
Change-Id: If440ce129c31fb 4e62a8e0ac50941 95f4d4d7167 ce6fbb63f0608aa 021f0b5400)
(cherry picked from commit 67bfc907030d7f0