chore: migrate bare ansible_* facts to ansible_facts[] syntax
All checks were successful
ci/woodpecker/push/linting Pipeline was successful

This commit is contained in:
Simon Cornet 2026-05-19 09:19:03 +02:00
commit 2272aa6a58
23 changed files with 70 additions and 70 deletions

View file

@ -3,7 +3,7 @@
# apt update
- name: "apt update"
tags: "apt-update"
when: 'ansible_os_family == "Debian"'
when: 'ansible_facts["os_family"] == "Debian"'
block:
# run apt update
@ -35,7 +35,7 @@
cmd: "fstrim /"
changed_when: false
failed_when: false
when: "ansible_virtualization_type == 'kvm'"
when: "ansible_facts['virtualization_type'] == 'kvm'"
# check for reboots
- name: "check if reboot required"