crgwilson / ansible-role-hostname

Configure the hostname of a linux host

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible role: Hostname

Molecule Test

Configure the hostname of a linux host

  • Set the hostname via hostnamectl
  • Update the hosts file with the new hostname

Variables

Name Default Description
hostname_fqdn localhost.localdomain The FQDN to set as the hostname
hostname_refresh_facts true Gather facts again after changing the hostname?

Testing

Testing for this project is setup using Molecule & Vagrant. Unit tests can be run using the below command:

foo@bar:~$ molecule test --all

About

Configure the hostname of a linux host


Languages

Language:Python 100.0%