From 1143a273413e8c3df0b4c0f553eab30acb0804f8 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Sun, 28 Jun 2026 20:51:50 +0000 Subject: fix: use ansible_facts for getent_passwd Replace direct usage of getent_passwd with ansible_facts.getent_passwd in both client_setup.yml and server_setup.yml. Ansible 2.24+ will remove the INJECT_FACTS_AS_VARS feature, requiring explicit use of ansible_facts dictionary instead of top-level fact variables. Fixes deprecation warning: INJECT_FACTS_AS_VARS default to 'True' is deprecated, top-level facts will not be auto injected after the change. --- tasks/client_setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tasks/client_setup.yml') diff --git a/tasks/client_setup.yml b/tasks/client_setup.yml index fc32e03..5d162ed 100644 --- a/tasks/client_setup.yml +++ b/tasks/client_setup.yml @@ -7,7 +7,7 @@ - name: Compute borg_client_user_home if not set ansible.builtin.set_fact: - borg_client_user_home: "{{ getent_passwd[borg_client_user][4] }}" + borg_client_user_home: "{{ ansible_facts.getent_passwd[borg_client_user][4] }}" when: borg_client_user_home is not defined - name: Validate borg_client_user home exists -- cgit v1.2.3