From 4d57e2bb3d328bde13f8483566f10b49fa37298e Mon Sep 17 00:00:00 2001 From: Valentino Cossar <4087384+valentinocossar@users.noreply.github.com> Date: Mon, 24 Aug 2026 12:34:03 +0200 Subject: [PATCH] fix: use ansible_facts.distribution instead of deprecated ansible_distribution Avoids the INJECT_FACTS_AS_VARS deprecation warning (removed in ansible-core 2.24) by reading the fact through ansible_facts, matching the pattern already used elsewhere in this file. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01GZC9vFcMhnukbtdVM8zV62 --- tasks/install_runner_unix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install_runner_unix.yml b/tasks/install_runner_unix.yml index f23cac5..b8bb4f2 100644 --- a/tasks/install_runner_unix.yml +++ b/tasks/install_runner_unix.yml @@ -177,7 +177,7 @@ args: chdir: "{{ runner_dir }}" changed_when: true - become: "{{ 'false' if ansible_distribution == 'MacOSX' else 'true' }}" + become: "{{ 'false' if ansible_facts.distribution == 'MacOSX' else 'true' }}" no_log: "{{ hide_sensitive_logs | bool }}" ignore_errors: "{{ ansible_check_mode }}" when: runner_state|lower == "stopped"