aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-03-22 08:46:04 +0000
committerPeter Mikus <pmikus@cisco.com>2021-03-29 08:43:57 +0000
commit571108e9ccec90c3719f5336650d624b4e8e9c47 (patch)
treeae356073df85ca83156c016f0bc2ee9ad9aeec35 /resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml
parentac7045fed2e1593fbbdf22113fb2983989583c7a (diff)
Infra: Ansible sync
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I4b1516a957447b8356949626e385b9317ed1933c (cherry picked from commit 3402c93328d877ef09a026f5a491eabd34f8bc1e)
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml15
1 files changed, 12 insertions, 3 deletions
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