chore: migrate bare ansible_* facts to ansible_facts[] syntax
Some checks failed
ci/woodpecker/push/linting Pipeline failed

This commit is contained in:
Simon Cornet 2026-05-19 09:19:08 +02:00
commit 691ca56904
2 changed files with 7 additions and 7 deletions

View file

@ -2,12 +2,12 @@
# load variables and collect version information
- name: "include vars and collect versions"
when: "ansible_os_family not in 'Alpine'"
when: "ansible_facts['os_family'] not in 'Alpine'"
block:
# load os specific variables
- name: "include os specific vars"
ansible.builtin.include_vars: "{{ ansible_os_family }}.yaml"
ansible.builtin.include_vars: "{{ ansible_facts['os_family'] }}.yaml"
# collect zabbix-agent2 version information
- name: "collect version information"
@ -22,4 +22,4 @@
# zabbix-agent prerequisites
- name: "zabbix-agent prerequisites"
ansible.builtin.import_tasks: "prerequisites.yaml"
when: "ansible_os_family not in 'Alpine'"
when: "ansible_facts['os_family'] not in 'Alpine'"