Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-15 Thread Jorge Rúa
I guess the issue now is that you are trying to use connection plugin local to the newly created vm, which I assume is a windows machine. Then you should override connection mechanism for those tasks dealing with windows or as you suggested spliting the playbook into two, one dealing with vcenter

Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-15 Thread Abhijot Singh Kathuria
Hey Dick, Changed the localhost for the domain task to the host itself. No help, still getting the same error: fatal: [localhost -> ans-dv4-test1]: FAILED! => { "changed": false, "module_stderr": "\u001b[91mParserError:

Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-14 Thread Dick Visser
The advice given should work. Please share your exact playbook once again. On Fri, 15 Oct 2021 at 01:22, Abhijot Singh Kathuria wrote: > Hey Jorge, > > Thanks for your reply. > > I tried making the inventory to all and adding delegate_to: localhost. No > luck here. > > Still getting the same

Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-14 Thread Abhijot Singh Kathuria
Hey Jorge, Thanks for your reply. I tried making the inventory to all and adding delegate_to: localhost. No luck here. Still getting the same error message. *Regards,* *Abhijot Singh* *Graduate Student, CIS* *Talent Ambassador, Talent Gateway* *Community Organizer, Civic Leadership Board* *

Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-14 Thread Jorge Rúa
Obviously, you would need to run the join domain task against the newly created VM. To do that you should use delegate_to. I would change your inventory to all, and then on the vmware related tasks use delegate_to: localhost since what is happening behind the scenes are just soap/rest api calls

[ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-14 Thread Abhijot Singh Kathuria
Hey Guys, I need some assistance on the below error. I've tried everything but I'm not able to resolve the same. TASK [Join to Domain] ** task path: