Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Infra: Ansible sync
[csit.git]
/
resources
/
tools
/
testbed-setup
/
ansible
/
roles
/
ab
/
tasks
/
main.yaml
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
9153198
..
37e702e
100644
(file)
--- 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
---
# 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
package:
name: "{{ packages | flatten(levels=1) }}"
state: present
- update_cache: true
- tags: install-ab
+ tags:
+ - ab-inst
\ No newline at end of file