From 55e758fd0ca192621877a53acaab8a5f2cd1d498 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Sun, 2 Jul 2017 17:46:09 +0200 Subject: [PATCH] [sympa] get 'mail' ip from hostname --- roles/sympa/meta/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/sympa/meta/main.yaml b/roles/sympa/meta/main.yaml index df06a87..eb1dc96 100644 --- a/roles/sympa/meta/main.yaml +++ b/roles/sympa/meta/main.yaml @@ -5,5 +5,5 @@ dependencies: server_fqdn: "lists.lilik.it" parent_role_path: "sympa" - role: exim4 - stmp_relay: "{{ hostvars['mail'].ansible_host }}" + stmp_relay: "{{ hostvars | ip_from_inventory('mail') }}" sympa_transport: true