Connecting windows from ansible control server

hello folks,

is there any way to connect to aws windows machines using ansible by using aws private key file ?

i have launched one windows machine in aws with some keypair, is there any possible way to connect from ansible control server to the created windows machine by using that keypair, indeed we can able to connect if the mahcine is linux.

You need to decode the password using the ec2_win_password module and use that as the value for ansible_password. I’ve got a very basic workflow that does just that here https://github.com/jborean93/ansible-win-demos/blob/master/ec2-win-ami/main.yml#L56.