Hostname not updating and finish script not running


I'm deploying a vmware template with the image provisioning methode
including finish script over ssh.
Now the vm gets deployed, however the hostname is not updated neither is
the finish script running.

When running foreman-tail i do not see any errors related to the

Can someone point me in the right direction please?