feat: use builtin virtualisation detection

This commit is contained in:
Simon Cornet 2026-04-10 14:23:17 +02:00
commit 02d15fb57a
6 changed files with 15 additions and 14 deletions

View file

@ -29,14 +29,15 @@
community.general.apk:
name: "qemu-guest-agent"
state: "absent"
when: 'type == "lxc"'
when: "ansible_virtualization_type == 'lxc'"
# install qemu-guest-agent
- name: "install qemu-guest-agent"
community.general.apk:
name: "qemu-guest-agent"
state: "present"
when: 'type == "vm"'
when: "ansible_virtualization_type == 'kvm'"
# clean cache
- name: "clean cache"