X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fab%2Ftasks%2Fmain.yaml;h=37e702e6df5b6c50370cdad4848b2f80f3492aa6;hb=refs%2Fchanges%2F97%2F31697%2F2;hp=9153198cfb4d9748846f3f9233e7f92ccd8d9665;hpb=026d128b96a386781733961edbf26ba197530954;p=csit.git 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..37e702e6df 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,18 @@ --- # file: roles/ab/tasks/main.yaml -- name: Install Apache ab tools +- name: Inst - Update Package Cache (APT) + apt: + update_cache: yes + cache_valid_time: 3600 + when: + - ansible_distribution|lower == 'ubuntu' + tags: + - ab-inst-prerequisites + +- name: Inst - Apache ab tools package: name: "{{ packages | flatten(levels=1) }}" state: present - update_cache: true - tags: install-ab + tags: + - ab-inst \ No newline at end of file