aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml40
1 files changed, 0 insertions, 40 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml b/resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml
deleted file mode 100644
index aee3761476..0000000000
--- a/resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml
+++ /dev/null
@@ -1,40 +0,0 @@
----
-# file: roles/tg/tasks/wrk.yaml
-
-- name: WRK Install - Get Release Archive
- get_url:
- url: 'https://github.com/wg/wrk/archive/{{ wrk.version }}.tar.gz'
- dest: '{{ wrk.target_dir }}/{{ wrk.version }}.tar.gz'
- mode: 0644
- register: wrk_downloaded
- tags: install-wrk
-
-- name: WRK Install - Ensure Directory Exists
- file:
- path: '{{ wrk.target_dir }}/wrk-{{ wrk.version }}'
- state: 'directory'
- register: wrk_dir_created
- tags: install-wrk
-
-- name: WRK Install - Extract Release Archive
- unarchive:
- remote_src: true
- src: '{{ wrk.target_dir }}/{{ wrk.version }}.tar.gz'
- dest: '{{ wrk.target_dir }}/'
- creates: '{{ wrk.target_dir }}/wrk-{{ wrk.version }}/src'
- when: wrk_dir_created
- register: wrk_extracted
- tags: install-wrk
-
-- name: WRK Install - Compile Release
- command: 'make'
- args:
- chdir: '{{ wrk.target_dir }}/wrk-{{ wrk.version }}'
- when: wrk_extracted
- register: wrk_compiled
- tags: install-wrk
-
-- name: WRK Install - Move Binary
- command: 'mv {{ wrk.target_dir }}/wrk-{{ wrk.version }}/wrk /usr/local/bin/'
- when: wrk_compiled
- tags: install-wrk