Skip to content

Set hostname via Ansible hostname module and updates /etc/hosts with hostname and domain

License

Notifications You must be signed in to change notification settings

flaminem/ansible-role-hostname

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hostname

Set hostname via Ansible hostname module and updates /etc/hosts with hostname and domain.

Requirements

Ansible version 1.4 with modules hostname and template. Ansible module hostname currently implemented on only Debian, Ubuntu, RedHat and CentOS.

Role Variables

  • hostname_name - new hostname (not FQDN, before first dot)
  • hostname_domain - new domain name

License

MIT

Author Information

Sergey Korolev ([email protected])

About

Set hostname via Ansible hostname module and updates /etc/hosts with hostname and domain

Resources

License

Stars

Watchers

Forks

Packages

No packages published