alpine: set hostname
And configure /etc/hosts accordingly.
This commit is contained in:
parent
fe6c35edf1
commit
398e41732e
2 changed files with 11 additions and 0 deletions
2
roles/alpine/templates/hosts.j2
Normal file
2
roles/alpine/templates/hosts.j2
Normal file
|
@ -0,0 +1,2 @@
|
|||
127.0.0.1 {{ dns_name }} {{ dns_name | split('.') | first }} localhost.localdomain localhost
|
||||
::1 localhost localhost.localdomain
|
Loading…
Add table
Add a link
Reference in a new issue