Ansible Role hostname
This role simply sets the hostname of the server.
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
The domain (name) part of the hostname. Allows easily setting the same domain name for multiple servers. |
|
|
The full hostname to set. This could be a fully qualified domain name (FQDN). Setting this overwrites |
|
|
The host part of the hostname. |
|
Example:
# optional
hostname__domain_part: 'example.com'
hostname__full_hostname: 'server.example.com'
hostname__host_part: 'server'