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

Includes fix from 44761d390b to ensure
unit tests only run against this repository.

Change-Id: Ie0642cc41c016fc016b2bc6fc6d04b6afdf2be2c
Partial-bug: 1750656
(cherry picked from commit cb435cea45)
2018-03-12 16:42:22 +00:00

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