Hi
Thanks for your response. I am using Windows 2012 R2 standard edition.
Without running the ConfigureRemotingForAnsible.ps1, I am not able to
connect to windows machine from Ansible controller. We are provisioning
machines on soft layer. Need to see whether an option/permission to create
a template is available with us or not. So looking for some option to get
the script run once the machine is provisioned. Tried using pywinrm , but
that needs some winrm variables to set , so the connection happens through
python.
On Sunday, April 3, 2016 at 8:47:55 PM UTC+5:30, J Hawkesworth wrote:
>
> 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/913b69c4-ddf8-49c2-9848-99074217b5f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.