update hosts

This commit is contained in:
Gilles Mouchet 2024-05-22 17:28:03 +02:00
parent 93d8990762
commit 07a48f4f1b

View File

@ -6,4 +6,4 @@
line: '{{ item }}'
state: present
with_items:
- '{{ ansible_default_ipv4.address }} {{ ansible_hostname }} {{ ansible_fqdn }}'
- line: '{{ ansible_eth0.ipv4.address }} {{ inventory_hostname }} {{ inventory_hostname }}.{{ ansible_domain }}'