From 6d927c0f20f95dfb1ece8766dfaf34805bc2f820 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sat, 24 Jan 2026 16:24:28 +0100 Subject: Fix ansible_facts to use only bracket notation instead of dot notation Co-authored-by: claude.ai --- roles/password_policy/templates/debian-pam-pw.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/password_policy') diff --git a/roles/password_policy/templates/debian-pam-pw.j2 b/roles/password_policy/templates/debian-pam-pw.j2 index 323aa41d..35be0ee4 100644 --- a/roles/password_policy/templates/debian-pam-pw.j2 +++ b/roles/password_policy/templates/debian-pam-pw.j2 @@ -44,7 +44,7 @@ password requisite pam_deny.so # this avoids us returning an error just because nothing sets a success code # since the modules above will each just jump around password required pam_permit.so -{% if ansible_distribution == "Ubuntu" %} +{% if ansible_facts['distribution'] == "Ubuntu" %} # and here are more per-package modules (the "Additional" block) password optional pam_gnome_keyring.so {% endif %} -- cgit v1.2.3