diff options
author | Peter Mikus <pmikus@cisco.com> | 2020-02-28 15:26:06 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-03-10 11:11:31 +0000 |
commit | 6db8aec19b0109f9efcef189d32ddaac8c469370 (patch) | |
tree | 9fc1c42a1460f3e8bff7af20fc833d2b2a2d0a11 /resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml | |
parent | 6daa2d791f0e0d41b73668ef3ee233e58987dc37 (diff) |
Ansible: LTS support
- There is currently no other way to support multiple version of
playbooks.
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I2ade4a57d726b793e422996e83bf767ac4315488
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml index e77fdbcae3..db9b104c36 100644 --- a/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml @@ -1,7 +1,7 @@ --- # file: roles/iperf/tasks/main.yaml -- name: iPerf Install - Install Distribution - Release - Machine Prerequisites +- name: iPerf - Install Distribution - Release - Machine Prerequisites package: name: "{{ packages | flatten(levels=1) }}" state: latest @@ -9,32 +9,45 @@ tags: - install-dependencies -- name: iPerf Install - Get Release Archive +- name: iPerf - Get Release Archive get_url: - url: "https://downloads.es.net/pub/iperf/iperf-{{ iperf_version }}.tar.gz" - dest: "{{ iperf_target_dir }}/iperf-{{ iperf_version }}.tar.gz" + url: "https://downloads.es.net/pub/iperf/iperf-{{ item }}.tar.gz" + dest: "{{ iperf_target_dir }}/iperf-{{ item }}.tar.gz" mode: 0644 + loop: "{{ iperf_version }}" tags: - install-iperf -- name: iPerf Install - Ensure Directory Exists - file: - path: "{{ iperf_target_dir }}/iperf-{{ iperf_version }}" - state: "directory" - tags: - - install-iperf - -- name: iPerf Install - Extract Release Archive +- name: iPerf - Extract Release Archive unarchive: remote_src: true - src: "{{ iperf_target_dir }}/iperf-{{ iperf_version }}.tar.gz" + src: "{{ iperf_target_dir }}/iperf-{{ item }}.tar.gz" dest: "{{ iperf_target_dir }}/" - creates: "{{ iperf_target_dir }}/iperf-{{ iperf_version }}/src" + creates: "{{ iperf_target_dir }}/iperf-{{ item }}/src" + loop: "{{ iperf_version }}" + tags: + - install-iperf + +- name: iPerf - Compile Release I + command: "./configure" + args: + chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" + loop: "{{ iperf_version }}" + tags: + - install-iperf + +- name: iPerf - Compile Release II + command: "make" + args: + chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" + loop: "{{ iperf_version }}" tags: - install-iperf -- name: iPerf Install - Compile Release I - shell: | - cd "{{ iperf_target_dir }}/iperf-{{ iperf_version }}/" && ./configure && make && make install +- name: iPerf - Compile Release III + command: "make install" + args: + chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" + loop: "{{ iperf_version }}" tags: - install-iperf |