Ansible playbook to change Hostname
What do you do when you suddenly get a task to change 100 switches and 20 router’s hostname before taking the weekend or vacation? Do not panic, the solution is Ansible playbook and is very fast. 1. Create an empty YAML file and name it hostname-changer with below codes: — – name: Change hostname hosts:…