Ansible VMWARE

Set Linux Hostname the same as VM name with Ansible

While deploying new VM’s is easy with Ansible, I kept on struggling with setting the hostname. There is Ansible documentation to use vmware_vm_shell module to set the hostname. The following is stated on their help page. Whatever I tried, I could not manage to get it working. It dit not error but just didn’t work. […]