localhost line sould not contain hostname information
see https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution
This commit is contained in:
parent
08c4151368
commit
da459374b2
|
@ -2,6 +2,7 @@
|
|||
|
||||
## Enhancements
|
||||
* Add example playbook.
|
||||
* localhost line sould not contain hostname information (see https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution).
|
||||
|
||||
## v1.0
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ Manage some basics configuration for IPR's servers.
|
|||
|
||||
* **basics__domain** : Domain to use [default : `{{ ansible_domain }}`].
|
||||
* **basics__hosts_localhost_manage** : If the localhost (127.0.0.1) line should be managed [default : `false`].
|
||||
* **basics__hosts_localhost_content** : Content of the localhost (127.0.0.1) line [default : `{{ ansible_hostname }}.{{ basics__domain }} {{ ansible_hostname }} localhost.localdomain localhost`].
|
||||
* **basics__hosts_localhost_content** : Content of the localhost (127.0.0.1) line [default : `localhost.localdomain localhost`].
|
||||
* **basics__hosts_ipv4_manage** : If the ipv4 (lan) line should be managed [default : `false`].
|
||||
* **basics__hosts_ipv4_content** : Content of the ipv4 (lan) line [default : `{{ ansible_hostname }}.{{ basics__domain }} {{ ansible_hostname }}`].
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ basics__domain: "{{ ansible_domain }}"
|
|||
|
||||
# Manage /etc/hosts
|
||||
basics__hosts_localhost_manage: false
|
||||
basics__hosts_localhost_content: "{{ ansible_hostname }}.{{ basics__domain }} {{ ansible_hostname }} localhost.localdomain localhost"
|
||||
basics__hosts_localhost_content: "localhost.localdomain localhost"
|
||||
basics__hosts_ipv4_manage: false
|
||||
basics__hosts_ipv4_content: "{{ ansible_hostname }}.{{ basics__domain }} {{ ansible_hostname }}"
|
||||
|
||||
|
|
Reference in New Issue