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
|
# disable apparmor
|
||||||
- name: "apparmor"
|
- name: "apparmor"
|
||||||
ansible.builtin.import_tasks: "apparmor.yaml"
|
ansible.builtin.import_tasks: "apparmor.yaml"
|
||||||
when: 'type == "lxc"'
|
when: "ansible_virtualization_type == 'lxc'"
|
||||||
|
|
||||||
# flush handler
|
# flush handler
|
||||||
- name: "flush handlers"
|
- name: "flush handlers"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue