openstack-ansible-tests/ansible-lint/test/apt-repository-cache-update-failure.yml
git-harry cb435cea45 Add tests for APTRepositoryCacheUpdateRule
The custom ansible-lint rule APTRepositoryCacheUpdateRule was added in
67bfc90703, this change adds tests to
validate its functionality.

Change-Id: Ie0642cc41c016fc016b2bc6fc6d04b6afdf2be2c
Partial-bug: 1750656
2018-03-09 10:29:00 +00:00

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