4ab3e95a80
The custom ansible-lint rule APTRepositoryCacheUpdateRule was added in67bfc90703
, this change adds tests to validate its functionality. Includes fix from44761d390b
to ensure unit tests only run against this repository. Change-Id: Ie0642cc41c016fc016b2bc6fc6d04b6afdf2be2c Partial-bug: 1750656 (cherry picked from commitcb435cea45
)
14 lines
361 B
YAML
14 lines
361 B
YAML
- tasks:
|
|
|
|
- name: Apt cache update disabled
|
|
apt_repository:
|
|
repo: "deb https://example.com/foo/ bar baz"
|
|
update_cache: false
|
|
|
|
- name: Apt cache update disabled with retries
|
|
apt_repository:
|
|
repo: "deb https://example.com/foo/ bar baz"
|
|
update_cache: false
|
|
register: add_repo
|
|
until: add_repo|success
|