feat: use builtin fact for virtualisation detection

This commit is contained in:
Simon Cornet 2026-04-10 14:19:06 +02:00
commit d42696eb26

View file

@ -4,7 +4,7 @@
# disable apparmor
- name: "apparmor"
ansible.builtin.import_tasks: "apparmor.yaml"
when: 'type == "lxc"'
when: "ansible_virtualization_type == 'lxc'"
# flush handler
- name: "flush handlers"