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:05 +02:00
commit 77056c82ee

View file

@ -6,7 +6,7 @@
name: "rsyslog" name: "rsyslog"
state: "present" state: "present"
cache_valid_time: "120" cache_valid_time: "120"
when: 'ansible_os_family == "Debian"' when: 'ansible_facts["os_family"] == "Debian"'
# install cronjob for logrotate # install cronjob for logrotate
- name: "add cron job for logrotate" - name: "add cron job for logrotate"
@ -21,4 +21,4 @@
ansible.builtin.apt: ansible.builtin.apt:
deb: "{{ splunk_forwarder_deb }}" deb: "{{ splunk_forwarder_deb }}"
state: "present" state: "present"
when: 'ansible_os_family == "Debian"' when: 'ansible_facts["os_family"] == "Debian"'