diff options
Diffstat (limited to 'resources/tools/testbed-setup/ansible')
3 files changed, 28 insertions, 0 deletions
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 index 0000000000..0609b06855 --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml @@ -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 index 0000000000..9153198cfb --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml @@ -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 diff --git a/resources/tools/testbed-setup/ansible/tg.yaml b/resources/tools/testbed-setup/ansible/tg.yaml index e6c5b4b9db..00ecaefe01 100644 --- a/resources/tools/testbed-setup/ansible/tg.yaml +++ b/resources/tools/testbed-setup/ansible/tg.yaml @@ -28,3 +28,5 @@ tags: cleanup - role: calibration tags: calibration + - role: ab + tags: ab |