add tests for ubuntu + task: apt update

This commit is contained in:
2026-07-17 12:24:02 +03:00
parent 09ffb32784
commit 45f51b67b1
2 changed files with 14 additions and 0 deletions

View File

@@ -37,6 +37,11 @@
fail_msg: "alloy version {{ grafana_alloy_version }} is not installed or not working correctly"
rescue:
- name: "Install | Update apt cache on Debian"
ansible.builtin.apt:
update_cache: true
when: ansible_facts["os_family"] == "Debian"
- name: "Install | Ensure unzip is present"
ansible.builtin.package:
name: "unzip"