From 07a48f4f1b5067407798d6ea0794b21cf0d7e062 Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Wed, 22 May 2024 17:28:03 +0200 Subject: [PATCH] update hosts --- hosts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts.yml b/hosts.yml index cdd74df..81c0949 100644 --- a/hosts.yml +++ b/hosts.yml @@ -6,4 +6,4 @@ line: '{{ item }}' state: present with_items: - - '{{ ansible_default_ipv4.address }} {{ ansible_hostname }} {{ ansible_fqdn }}' \ No newline at end of file + - line: '{{ ansible_eth0.ipv4.address }} {{ inventory_hostname }} {{ inventory_hostname }}.{{ ansible_domain }}' \ No newline at end of file