2 # file: roles/trex/tasks/main.yaml
4 - name: T-Rex - Distribution - Release - Machine Prerequisites
6 name: "{{ packages | flatten(levels=1) }}"
10 - install-dependencies
12 - name: T-Rex - Get Release Archive
14 url: "{{ trex_url }}/v{{ item }}.tar.gz"
15 dest: "{{ trex_target_dir }}/trex-core-{{ item }}.tar.gz"
18 loop: "{{ trex_version }}"
19 register: trex_downloaded
23 - name: T-Rex - Ensure Directory Exists
25 path: "{{ trex_target_dir }}/trex-core-{{ item }}"
27 loop: "{{ trex_version }}"
31 - name: T-Rex - Extract Release Archive
34 src: "{{ trex_target_dir }}/trex-core-{{ item }}.tar.gz"
35 dest: "{{ trex_target_dir }}/"
36 creates: "{{ trex_target_dir }}/trex-core-{{ item }}/linux_dpdk/"
37 loop: "{{ trex_version }}"
38 register: trex_extracted
42 - name: T-Rex - Azure patch I
44 src: "files/t-rex.patch"
45 basedir: "{{ trex_target_dir }}/trex-core-{{ item }}"
47 loop: "{{ trex_version }}"
49 - azure is defined and "{{ item }}" == "2.73"
53 - name: T-Rex - Compile Release I
54 command: "./b configure"
56 chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/linux_dpdk/"
57 loop: "{{ trex_version }}"
62 - name: T-Rex - Compile Release II
65 chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/linux_dpdk/"
66 loop: "{{ trex_version }}"
71 - name: T-Rex - Compile Release III
74 chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/scripts/ko/src"
75 loop: "{{ trex_version }}"
80 - name: T-Rex - Compile Release IV
81 command: "make install"
83 chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/scripts/ko/src"
84 loop: "{{ trex_version }}"