Skip to content
Commits on Source (2)
......@@ -11,6 +11,6 @@
lineinfile:
dest=/etc/hosts
regexp="^{{ ip | default(ansible_default_ipv4.address) }}.+$"
line="{{ ip | default(ansible_default_ipv4.address) }} {{ ansible_fqdn }} {{ ansible_hostname }} {{ inventory_hostname }}"
line="{{ ip | default(ansible_default_ipv4.address) }} {{ inventory_hostname }} {{ ansible_hostname }}"
tags: hostname