feat: use builtin virtualisation detection
This commit is contained in:
parent
6d2695274c
commit
02d15fb57a
6 changed files with 15 additions and 14 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue