diff --git a/README.rst b/README.rst index 35579d9..785fec4 100644 --- a/README.rst +++ b/README.rst @@ -20,6 +20,12 @@ including Jenkins and Zuul. Requirements ------------ +Packages +~~~~~~~~ + +Package repository index files should be up to date before using this role, we +do not manage them. + Role Variables -------------- diff --git a/tests/test.yaml b/tests/test.yaml index 81dab81..5fa16b8 100644 --- a/tests/test.yaml +++ b/tests/test.yaml @@ -13,7 +13,15 @@ # under the License. --- - hosts: localhost + sudo: yes vars: rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}" + pre_tasks: + # Make sure OS does not have a stale package cache. + - name: Update apt cache. + apt: + update_cache: yes + when: ansible_os_family == 'Debian' + roles: - "{{ rolename }}"