Skip to content

ANSIBLE batch rename hostnames. It works with systemd, but can easily be adopted for init systems.

License

Notifications You must be signed in to change notification settings

magzim21/ansible_change_hostnames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANSIBLE batch rename hostnames

It works with systemd, but can easily be adopted for init systems.

  1. Put desired information into hostnames.json
  2. Comment out whole 'ZABBIX SECTION' in pl-rename.yml if zabbix is not installed.
  3. Run ansible-playbook pl-rename.yml --extra-vars="hosts_group=<name of hostgroup from your 'hosts' file>"
  4. Enjoy 💯

About

ANSIBLE batch rename hostnames. It works with systemd, but can easily be adopted for init systems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages