summaryrefslogtreecommitdiffstats
path: root/roles/password_policy/templates
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-01-24 16:24:28 +0100
committerAhmed AbdelHalim <[email protected]>2026-01-24 16:24:28 +0100
commitab9b04baac2970fdcea9999e2bcfd7d60d3fc23d (patch)
tree7fcc3918e290e31309d74eb0b784fa6a00318ee3 /roles/password_policy/templates
parent3cf08783dec1d6c5f9e2a7933e730b054d78e376 (diff)
Fix ansible_facts to use only bracket notation instead of dot notation
Co-authored-by: claude.ai
Diffstat (limited to 'roles/password_policy/templates')
-rw-r--r--roles/password_policy/templates/debian-pam-pw.j22
1 files changed, 1 insertions, 1 deletions
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 %}