aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/trex/tasks/main.yaml
blob: 8f659b697c8675bbc93d2fb84fdf4c31e3deacd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
# file: roles/trex/tasks/main.yaml

- name: Inst - Update Package Cache (APT)
  apt:
    update_cache: true
    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