--- # Update all hostnames from ansible_inventory # # Run: # ansible-playbook -i inventory/hosts tasks/system/network/update-hostname.yml # # Prepare: # See readme.md and init your workspace # This playbook will update the hostname of the remote hosts to match the inventory. It will also update the /etc/hosts file to reflect the new hostname. - hosts: all roles: - network