From 556d98c170e652b4dcdd029e29d4c5a7376ce101 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Wed, 14 Oct 2020 16:33:39 +0200 Subject: [PATCH] Variable ansible_fqdn is often not the name of the server --- roles/etc-git/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/etc-git/tasks/main.yml b/roles/etc-git/tasks/main.yml index 72b2ff3..f3ef13e 100644 --- a/roles/etc-git/tasks/main.yml +++ b/roles/etc-git/tasks/main.yml @@ -22,7 +22,7 @@ name: user.email repo: /etc scope: local - value: "root@{{ ansible_fqdn | default('localhost') }}" + value: "root@{{ inventory_hostname }}.{{ general_technical_realm }}" tags: - etc-git