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

@ -10,7 +10,7 @@
name: "chrony"
state: "present"
update_cache: true
when: 'ansible_os_family == "Alpine"'
when: 'ansible_facts["os_family"] == "Alpine"'
# create keys file
- name: "ntp - chrony keys file"
@ -21,14 +21,14 @@
mode: "0440"
state: "touch"
notify: "restart chrony"
when: 'ansible_os_family == "Alpine"'
when: 'ansible_facts["os_family"] == "Alpine"'
# install chrony
- name: "ntp - install - chrony debian"
ansible.builtin.apt:
name: "chrony"
state: "present"
when: 'ansible_os_family == "Debian"'
when: 'ansible_facts["os_family"] == "Debian"'
# configure chrony
- name: "ntp - config - configure chrony"