Hi, You don't mention which version(s) of windows you are using. I think Server 2012 R2 may actually be configured for WinRM connections by default, so you might be able to connect without first running ConfigureRemotingForAnsible.ps1
Also if you are using AWS see this https://www.ansible.com/blog/easily-provision-windows I get round this by using a vmware template with a run once script which runs ConfigureRemotingForAnsible.ps1 when the virtual machine is first created from the template. I believe you can also create an autorun xml file and add it to the root of the windows ISO which allows for a fully automated installation of windows from ISO but I have not tried this myself. Hope this helps, Jon On Friday, 1 April 2016 05:45:18 UTC+1, Deepa Yr wrote: > > Hi > > My requirement is Provision a windows machine and run the > playbooks without manual intervention. In this case, we cannot run the > playbooks as windows is not configured for ansible. ie > ConfigureRemotingForAnsible.ps1 is not executed on windows machine. > > Is there a way to connect to windows machine from ansible control machine > and run the powershell script, after that playbooks can be run. > > Thanks > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9964e842-c297-485b-9e9c-d73487837a06%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
