cb435cea45
The custom ansible-lint rule APTRepositoryCacheUpdateRule was added in
67bfc90703
, this change adds tests to
validate its functionality.
Change-Id: Ie0642cc41c016fc016b2bc6fc6d04b6afdf2be2c
Partial-bug: 1750656
24 lines
697 B
YAML
24 lines
697 B
YAML
- tasks:
|
|
|
|
- name: APT cache updates implicitly enabled
|
|
apt_repository:
|
|
repo: "deb https://example.com/foo/ bar baz"
|
|
|
|
- name: APT cache updates explicitly enabled
|
|
apt_repository:
|
|
repo: "deb https://example.com/foo/ bar baz"
|
|
update_cache: true
|
|
|
|
- name: APT cache updates implicitly enabled and retries
|
|
apt_repository:
|
|
repo: "deb https://example.com/foo/ bar baz"
|
|
register: add_repo
|
|
until: add_repo|success
|
|
|
|
- name: APT cache updates explicitly enabled and retries
|
|
apt_repository:
|
|
repo: "deb https://example.com/foo/ bar baz"
|
|
update_cache: true
|
|
register: add_repo
|
|
until: add_repo|success
|