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