# Ansible vmware\_guest creates vmware vm, but hostname does not changes. Also creates a additional junk folder

**URL:** <https://forum.ansible.com/t/ansible-vmware-guest-creates-vmware-vm-but-hostname-does-not-changes-also-creates-a-additional-junk-folder/26682>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [February 8, 2018, 10:39am UTC](https://forum.ansible.com/t/ansible-vmware-guest-creates-vmware-vm-but-hostname-does-not-changes-also-creates-a-additional-junk-folder/26682 "2018-02-08T10:39:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajay\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Ajay\_Sharma](https://forum.ansible.com/u/Ajay_Sharma)\
**Post date:** [February 8, 2018, 10:39am UTC](https://forum.ansible.com/t/ansible-vmware-guest-creates-vmware-vm-but-hostname-does-not-changes-also-creates-a-additional-junk-folder/26682/1 "2018-02-08T10:39:30Z")

</div>

[![](https://lh3.googleusercontent.com/-1Ssrcmsjhp0/Wnwn3QoHRHI/AAAAAAAAAD8/DaNnDjBJmtkfel6xWETmISCI7bK-u-yXgCLcBGAs/s320/vmware_guest.JPG)](https://lh3.googleusercontent.com/-1Ssrcmsjhp0/Wnwn3QoHRHI/AAAAAAAAAD8/DaNnDjBJmtkfel6xWETmISCI7bK-u-yXgCLcBGAs/s1600/vmware_guest.JPG)

HI Everyone. this Ansible yaml script creates vmware vm from previous template, but does not changes its host name. also creates a additional folder named

here is the screen shot attached. The vmware\_guest module creates Testmachine, but the hostname of the machine remains same when i login to centos machine.

also creates a junk folder named as “replica-e040a406-2f24-4c53-b719-67f42c1b9115”

Thanks in Advance. please give some solution. here is my yaml script attached.

[![](https://lh3.googleusercontent.com/-1Ssrcmsjhp0/Wnwn3QoHRHI/AAAAAAAAAD8/DaNnDjBJmtkfel6xWETmISCI7bK-u-yXgCLcBGAs/s320/vmware_guest.JPG)](https://lh3.googleusercontent.com/-1Ssrcmsjhp0/Wnwn3QoHRHI/AAAAAAAAAD8/DaNnDjBJmtkfel6xWETmISCI7bK-u-yXgCLcBGAs/s1600/vmware_guest.JPG)

cat us\_vm.yaml

---

<div class="post-metadata">

**Author:** ![Ajay\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@Ajay\_Sharma1](https://forum.ansible.com/u/Ajay_Sharma1)\
**Post date:** [February 14, 2018, 12:50pm UTC](https://forum.ansible.com/t/ansible-vmware-guest-creates-vmware-vm-but-hostname-does-not-changes-also-creates-a-additional-junk-folder/26682/2 "2018-02-14T12:50:52Z")

</div>

Hi Everyone,

I would like to close this issue, as it is resolved.
