feat: use builtin virtualisation detection
This commit is contained in:
parent
6d2695274c
commit
02d15fb57a
6 changed files with 15 additions and 14 deletions
|
|
@ -18,4 +18,4 @@
|
|||
ansible.builtin.command: "fstrim /"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
when: 'type == "vm"'
|
||||
when: "ansible_virtualization_type == 'kvm'"
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
cmd: "fstrim /"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
when: 'type == "vm"'
|
||||
when: "ansible_virtualization_type == 'kvm'"
|
||||
|
||||
# check for reboots
|
||||
- name: "check if reboot required"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue