matic-insurance.hostname

Role Name

Set the hostname using /etc/hosts on Debian-based systems.

Debian-based systems recommend setting a non-FQDN (Fully Qualified Domain Name) hostname. This role takes the first part of the FQDN hostname to use as the hostname.

Requirements

This role only works on Debian-based systems and has been tested on Ubuntu 14.04.

Role Variables

You need to provide:

  • fqdn_hostname: The full FQDN hostname.

You can also change this variable:

  • short_hostname: The hostname that will be used in /etc/hostname. Default: the first part of fqdn_hostname.

Dependencies

No dependencies.

Example Playbook

- role: matic-insurance.hostname
  fqdn_hostname: '{{ inventory_hostname }}'
  tags: ['hostname']

License

MIT

Author Information

Matic is a communication platform that connects lenders and borrowers for new home loans. Now, borrowers can see their progress in the loan process and understand what they need to do to finish the loan.

Informazioni sul progetto

Set and persist hostname on Debian-based system.

Installa
ansible-galaxy install matic-insurance.hostname
Licenza
mit
Download
598