Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 401 Bytes

File metadata and controls

17 lines (12 loc) · 401 Bytes

Change hostname and update /etc/hosts file

Before everything first update inventory file.

Then update your desired hostnames:

  • add <host_name>.yml file for each of your hosts in /host_vars directory

  • add this line to every <host_name>.yml file:

    hostname: <desired_hostname>

Execute playbook

ansible-playbook tasks/main.yml