Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible hostname

Build Status

Change Hostname and localhost entrie in /etc/hosts

It will only Change if you set a hostname Variable - {{ host_name }}

Best way is to set host_name Var in your inventory File.

[hosts]
192.0.0.1 host_name=MyServerName
192.0.0.2 host_name=example

Example Playbook

- hosts: all
  roles:
    - role: ypsman.hostname

About

ansible-role to setup Hostname

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors