From 917c3d8dc1331db5a9676df16d4187312b0003d8 Mon Sep 17 00:00:00 2001 From: Tomas Alexy Date: Tue, 2 Feb 2021 12:37:01 +0100 Subject: Ansible: Fix package cache updates Signed-off-by: Tomas Alexy Change-Id: I5c7b2636bde999fef3a60e6cbf2b36db9978a74a --- resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'resources/tools/testbed-setup/ansible/roles/ab') diff --git a/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml index 9153198cfb..c422b4d2e0 100644 --- a/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml @@ -1,9 +1,15 @@ --- # file: roles/ab/tasks/main.yaml +- Name: Update package cache (apt) + apt: + update_cache: yes + cache_valid_time: 3600 + when: + - ansible_distribution|lower == 'ubuntu' + - name: Install Apache ab tools package: name: "{{ packages | flatten(levels=1) }}" state: present - update_cache: true tags: install-ab -- cgit 1.2.3-korg