setting up windows host on a production environment

Hi All,

How can i setup windows host to communicate with Ansible control node on a production environment securely.Can i run the below script with
[switch]$DisableBasicAuth = $true

https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1

I am trying to implement Ansible on my production environment with all the security features in place.Cn anyone guide me with the steps.

Thanks
Deepak

Hi Deepak,

You can use ntlm method.

HI Shashi ,

Please let me know the steps to configure it.

Thanks
Deepak

You need to use the following variables/extra vars for your playbook to connect to windows hosts ofcourse after the initial configuration on windows server to accept incoming connection is done.

ansible_connection: winrm
ansible_winrm_message_encryption: auto
ansible_winrm_port: 5985
ansible_winrm_transport: ntlm

Hi Deepak,

Is the issue resolved ? . Are you able to connect to windows hosts from ansible ?. If not i can help you .

Thanks,
Shashi

Hi Shashi,

The issue is not resolved yet,I am thinking to use kerbores since i have AD.Can you please help me.

Thanks
Deepak

Hi Deepak,

Use below variables and also the check the ansible is using correct python and enable the ports in windows hosts.
ansible_connection: winrm
ansible_port: 5985
ansible_winrm_scheme: http
ansible_winrm_server_cert_validation: ignore
ansible_winrm_transport: ntlm

Thanks,
Shashi