From cb7766118a9a252bf510a523e5039b617703ccdb Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Thu, 8 Feb 2024 14:26:40 +0200 Subject: [PATCH] only first record for fqdn --- tasks/configure_certificates.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure_certificates.yml b/tasks/configure_certificates.yml index c42d9b4..ac77b96 100644 --- a/tasks/configure_certificates.yml +++ b/tasks/configure_certificates.yml @@ -11,7 +11,7 @@ - name: Set fact for mail server FQDN set_fact: - mail_server_fqdn_ip: "{{ lookup('dig', mail_server_fqdn, '@1.1.1.1') }}" + mail_server_fqdn_ip: "{{ lookup('dig', mail_server_fqdn, '@1.1.1.1') | first }}" - name: Get file certificate stats stat: