# file: roles/trex/tasks/main.yaml
- name: Inst - Update Package Cache (APT)
- apt:
- update_cache: yes
+ ansible.builtin.apt:
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
- trex-inst-prerequisites
- name: Inst - Prerequisites
- package:
+ ansible.builtin.package:
name: "{{ packages | flatten(levels=1) }}"
state: latest
tags:
include_tasks: deploy_block.yaml
loop: "{{ trex_version }}"
tags:
- - trex-inst
\ No newline at end of file
+ - trex-inst