feat: use builtin fact for virtualisation detection
This commit is contained in:
parent
228492858e
commit
d42696eb26
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue