diff options
author | 2019-09-10 08:09:43 +0000 | |
---|---|---|
committer | 2019-09-11 10:54:32 +0000 | |
commit | 891f932d2c0928038c7cb77f96ecad6e12c0e81f (patch) | |
tree | 706a3867e582b0a1f0b1436c94a6da4e1eb7f315 /resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml | |
parent | 27cff25483728d50e0215b895c680fb88f6ffe99 (diff) |
Ansible: Trex installation
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I5ab8fe05074a842301a511bbd3ab5e67f8d1a9f0
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.yaml | 12 |
1 files changed, 10 insertions, 2 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 index 1da45fb4b4..e7d22e1aa1 100644 --- a/resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml +++ b/resources/tools/testbed-setup/ansible/roles/tg/tasks/wrk.yaml @@ -9,13 +9,21 @@ register: 'linux__wrk_downloaded' tags: install-wrk +- name: Ensure WRK directory exists + file: + path: '{{ wrk.target_dir }}/wrk-{{ wrk.version }}' + state: 'directory' + register: 'linux__wrk_dir_created' + tags: install-wrk + - name: Extract WRK release archive become: yes unarchive: src: '{{ wrk.target_dir }}/{{ wrk.version }}.tar.gz' - dest: '{{ wrk.target_dir }}/wrk-{{ wrk.version }}' + dest: '{{ wrk.target_dir }}/' + creates: '{{ wrk.target_dir }}/wrk-{{ wrk.version }}/src' remote_src: yes - when: 'linux__wrk_downloaded' + when: 'linux__wrk_dir_created' register: 'linux__wrk_extracted' tags: install-wrk |