Ansible git move
[csit.git] / fdio.infra.ansible / roles / trex / tasks / main.yaml
diff --git a/fdio.infra.ansible/roles/trex/tasks/main.yaml b/fdio.infra.ansible/roles/trex/tasks/main.yaml
new file mode 100644 (file)
index 0000000..d43baf9
--- /dev/null
@@ -0,0 +1,24 @@
+---
+# file: roles/trex/tasks/main.yaml
+
+- name: Inst - Update Package Cache (APT)
+  apt:
+    update_cache: yes
+    cache_valid_time: 3600
+  when:
+    - ansible_distribution|lower == 'ubuntu'
+  tags:
+    - trex-inst-prerequisites
+
+- name: Inst - Prerequisites
+  package:
+    name: "{{ packages | flatten(levels=1) }}"
+    state: latest
+  tags:
+    - trex-inst-prerequisites
+
+- name: Inst - Multiple T-Rex Versions
+  include_tasks: deploy_block.yaml
+  loop: "{{ trex_version }}"
+  tags:
+    - trex-inst
\ No newline at end of file