From 094a029fd988c1741d356235f0ca62090b732822 Mon Sep 17 00:00:00 2001 From: rubenb Date: Mon, 16 Oct 2023 08:42:31 +0200 Subject: [PATCH] exim4 define ansible node name --- .../roles/base-config-debian-os/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml b/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml index 4f591db..3c4eaaa 100644 --- a/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml +++ b/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml @@ -65,13 +65,13 @@ - name: exim4/dc_minimaldns value: 'false' - name: exim4/dc_readhost - value: "{{ dc_readhost }}" # var to define survey(encuesta) + value: "{{ ansible_facts['ansible_nodename'] }}" # var to define survey(encuesta) - name: exim4/dc_other_hostnames value: "" - name: exim4/dc_eximconfig_configtype value: "mail sent by smarthost; no local mail" - name: exim4/mailname - value: "{{ mailname }}" # var to define survey(encuesta) + value: "{{ ansible_facts['ansible_nodename'] }}" # var to define survey(encuesta) - name: exim4/use_split_config value: 'false' notify: Restart exim4 service