# Question about vcenter\_folder new module

**URL:** <https://forum.ansible.com/t/question-about-vcenter-folder-new-module/28164>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [July 26, 2018, 4:31pm UTC](https://forum.ansible.com/t/question-about-vcenter-folder-new-module/28164 "2018-07-26T16:31:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Julien](https://forum.ansible.com/u/Julien)\
**Post date:** [July 26, 2018, 4:31pm UTC](https://forum.ansible.com/t/question-about-vcenter-folder-new-module/28164/1 "2018-07-26T16:31:33Z")

</div>

Hello, I’ve just upgraded to Ansible 2.6 to use the vcenter\_folder module and I’ve got a question on how is it working:

Should we use a Windows or Linux host an then connect on the vsphere? Or directly put the vcenter hostname?

**###new\_app.yml | calling main####**

**- name: Creating a new app ( vCenter side )**  
**hosts: ???**  
**gather\_facts: false**  
**roles:**  
**- role: new\_app**  
**vCentActions: true**

**###new\_app | main.yml###**

**- name: Creating a VM folder for EPAM/EPOC**  
**vcenter\_folder:**  
**hostname: [xxx.mydomain.fr](http://xxx.mydomain.fr)**  
**username: ‘{{ user\_name }}’**  
**password: ‘{{ user\_password }}’**  
**datacenter: xxxx**  
**folder\_name: ‘{{ item.new\_folder }}’**  
**parent\_folder: ‘{{ item.parent\_folder }}’**  
**folder\_type: vm**  
**state: present**  
**validate\_certs: no**  
**register: vm\_folder\_creation\_result**  
**with\_items:**  
**- { new\_folder: “hi”, parent\_folder: “an” }**  
**- { new\_folder: “this”, parent\_folder: “example” }**  
**- { new\_folder: “is”, parent\_folder: “true” }**  
**when: ( zone\_name | lower == ‘xxx’ ) or ( zone\_name | lower == ‘xxx’ ) and ( zone\_type | lower == ‘xxx’ )**

When I put a Windows as the host i’e got this error **=\>**

**TASK [new\_app : Creating a VM folder for EPAM/EPOC] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**18:05:28**  
**[WARNING]: FATAL ERROR DURING FILE TRANSFER: (u’http’, u’Bad HTTP response**  
**returned from server. Code 500’)**  
**fatal: [PW1BAST-RDS11]: FAILED! =\> {“msg”: "winrm send\_input failed; \nstdout: Unable to initialize device PRN\r\nUnable to initialize device PRN\r\nUnable to initialize device PRN\r\n\nstderr ANSIBALLZ\_WRAPPER : The term ‘ANSIBALLZ\_WRAPPER’ is not recognized as the name \r\nof a cmdlet, function, script file, or operable program. Check the spelling of \r\nthe name, or if a path was included, verify that the path is correct and try \r\nagain.\r\nAt line:1 char:1\r\n+ ANSIBALLZ\_WRAPPER = True # For test-module script to tell this is a \r\nANSIBALLZ\_WR …\r\n+ ~~~~~~~~~~~~~~~~~ \r\n + CategoryInfo : ObjectNotFound: (ANSIBALLZ\_WRAPPER:String) [], C \r\n ommandNotFoundException\r\n + FullyQualifiedErrorId : CommandNotFoundException\r\n \r\nimport : The term ‘import’ is not recognized as the name of a cmdlet, \r\nfunction, script file, or operable program. Check the spelling of the name, or \r\nif a path was included, verify that the path is correct and try again.\r\nAt line:1 char:1\r\n+ …3**

**Did someone have already tested this module and can help me to use it?**  
**Thank’s**  
**Best Regards**  
**Julien.**

---

<div class="post-metadata">

**Author:** ![Julien](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Julien](https://forum.ansible.com/u/Julien)\
**Post date:** [July 27, 2018, 1:38pm UTC](https://forum.ansible.com/t/question-about-vcenter-folder-new-module/28164/2 "2018-07-27T13:38:35Z")

</div>

**The answer is that you need to launch the playbook on localhost.**  
**You need to have an https access from your host to the vCenter**
