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:04 +02:00
commit 2fa3b0027f

View file

@ -2,7 +2,7 @@
# install on debian
- name: "install on debian"
when: 'ansible_os_family == "Debian"'
when: 'ansible_facts["os_family"] == "Debian"'
block:
# install haproxy
@ -22,7 +22,7 @@
# install on alpine
- name: "install on alpine"
when: 'ansible_os_family == "Alpine"'
when: 'ansible_facts["os_family"] == "Alpine"'
block:
# install haproxy
@ -31,7 +31,7 @@
name: "haproxy"
state: "latest"
update_cache: true
when: 'ansible_os_family == "Alpine"'
when: 'ansible_facts["os_family"] == "Alpine"'
# start haproxy service
- name: "service - start haproxy"