add tests for ubuntu + task: apt update
This commit is contained in:
@@ -15,6 +15,15 @@ platforms:
|
|||||||
cgroupns_mode: host
|
cgroupns_mode: host
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
||||||
|
- name: ubuntu
|
||||||
|
image: geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2404}-ansible:latest
|
||||||
|
pre_build_image: true
|
||||||
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
|
volumes:
|
||||||
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||||
|
cgroupns_mode: host
|
||||||
|
privileged: true
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,11 @@
|
|||||||
fail_msg: "alloy version {{ grafana_alloy_version }} is not installed or not working correctly"
|
fail_msg: "alloy version {{ grafana_alloy_version }} is not installed or not working correctly"
|
||||||
|
|
||||||
rescue:
|
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"
|
- name: "Install | Ensure unzip is present"
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "unzip"
|
name: "unzip"
|
||||||
|
|||||||
Reference in New Issue
Block a user