vsap: install ab using ansible 30/28030/2
authorXiaolong Jiang <xiaolongx.jiang@intel.com>
Wed, 22 Jul 2020 09:28:27 +0000 (17:28 +0800)
committerPeter Mikus <pmikus@cisco.com>
Tue, 28 Jul 2020 08:49:47 +0000 (08:49 +0000)
Signed-off-by: Xiaolong Jiang <xiaolongx.jiang@intel.com>
Change-Id: I275ad9dccc02e6b1f1c791fabf8896fb03acb3fb

resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/tg.yaml

diff --git a/resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml b/resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml
new file mode 100644 (file)
index 0000000..0609b06
--- /dev/null
@@ -0,0 +1,17 @@
+---
+# file: roles/wrk/defaults/main.yaml
+
+packages: "{{ packages_base + packages_by_distro[ansible_distribution | lower] + packages_by_arch[ansible_machine] }}"
+
+packages_base:
+  - []
+
+packages_by_distro:
+  ubuntu:
+    - "apache2-utils"
+
+packages_by_arch:
+  aarch64:
+    - []
+  x86_64:
+    - []
diff --git a/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml
new file mode 100644 (file)
index 0000000..9153198
--- /dev/null
@@ -0,0 +1,9 @@
+---
+# file: roles/ab/tasks/main.yaml
+
+- name: Install Apache ab tools
+  package:
+    name: "{{ packages | flatten(levels=1) }}"
+    state: present
+    update_cache: true
+  tags: install-ab
index e6c5b4b..00ecaef 100644 (file)
@@ -28,3 +28,5 @@
       tags: cleanup
     - role: calibration
       tags: calibration
+    - role: ab
+      tags: ab

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.