X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fiperf%2Ftasks%2Fmain.yaml;h=00940e4958aa958e3b417949a830db8b43b46687;hp=8233ba71138d9b14917a9f103e730b225a5cf2fe;hb=917c3d8dc1331db5a9676df16d4187312b0003d8;hpb=b5073afc4a941ea33ce874e016fe86384ae7a60d diff --git a/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml index 8233ba7113..00940e4958 100644 --- a/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml @@ -1,11 +1,17 @@ --- # file: roles/iperf/tasks/main.yaml +- Name: Update package cache (apt) + apt: + update_cache: yes + cache_valid_time: 3600 + when: + - ansible_distribution|lower == 'ubuntu' + - name: iPerf - Install Distribution - Release - Machine Prerequisites package: name: "{{ packages | flatten(levels=1) }}" state: latest - update_cache: true tags: - install-dependencies