diff options
author | Tomas Alexy <tomas.alexy@pantheon.tech> | 2021-02-02 12:37:01 +0100 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-02-03 13:52:58 +0000 |
commit | 917c3d8dc1331db5a9676df16d4187312b0003d8 (patch) | |
tree | ea320f0fe077d0c94c9e2cdb6fb26423f366d305 /resources/tools/testbed-setup/ansible/roles/mellanox | |
parent | b5073afc4a941ea33ce874e016fe86384ae7a60d (diff) |
Ansible: Fix package cache updates
Signed-off-by: Tomas Alexy <tomas.alexy@pantheon.tech>
Change-Id: I5c7b2636bde999fef3a60e6cbf2b36db9978a74a
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/mellanox')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml index 2fb6e2e213..f677836702 100644 --- a/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml @@ -1,11 +1,17 @@ --- # file: roles/mellanox/tasks/main.yaml +- Name: Update package cache (apt) + apt: + update_cache: yes + cache_valid_time: 3600 + when: + - ansible_distribution|lower == 'ubuntu' + - name: Mellanox Install - Install Distribution - Release - Machine Prerequisites package: name: "{{ packages | flatten(levels=1) }}" state: latest - update_cache: true tags: - install-dependencies @@ -55,6 +61,5 @@ package: name: "qemu-system" state: latest - update_cache: true tags: - install-mellanox |