only first record for fqdn

This commit is contained in:
Antonio J. Delgado 2024-02-08 14:26:40 +02:00
parent 38a61c673f
commit cb7766118a

View file

@ -11,7 +11,7 @@
- name: Set fact for mail server FQDN - name: Set fact for mail server FQDN
set_fact: 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 - name: Get file certificate stats
stat: stat: