From 77056c82eee3f7bf674b13fdba0930ed106a15f8 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 19 May 2026 09:19:05 +0200 Subject: [PATCH] chore: migrate bare ansible_* facts to ansible_facts[] syntax --- tasks/install.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/install.yaml b/tasks/install.yaml index cb43a37..e207eb2 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -6,7 +6,7 @@ name: "rsyslog" state: "present" cache_valid_time: "120" - when: 'ansible_os_family == "Debian"' + when: 'ansible_facts["os_family"] == "Debian"' # install cronjob for logrotate - name: "add cron job for logrotate" @@ -21,4 +21,4 @@ ansible.builtin.apt: deb: "{{ splunk_forwarder_deb }}" state: "present" - when: 'ansible_os_family == "Debian"' + when: 'ansible_facts["os_family"] == "Debian"'