From df87ea4c95bb2f5a8aba06c117292dfef37ea661 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 6 Mar 2026 16:16:06 +0100 Subject: Replace deprecated `ansible_$foo` with `ansible_facts[$foo]`. --- templates/etc/postfix/main.cf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/etc/postfix') diff --git a/templates/etc/postfix/main.cf.j2 b/templates/etc/postfix/main.cf.j2 index 35a6790..10313b4 100644 --- a/templates/etc/postfix/main.cf.j2 +++ b/templates/etc/postfix/main.cf.j2 @@ -9,8 +9,8 @@ compatibility_level = 3.6 smtputf8_enable = no myorigin = /etc/mailname -myhostname = {{ ansible_fqdn }} -mydomain = {{ ansible_domain }} +myhostname = {{ ansible_facts.fqdn }} +mydomain = {{ ansible_facts.domain }} append_dot_mydomain = no # This server is for internal use only -- cgit v1.2.3