If you are trying to connect through a proxy I would set the WinRM host settings based on the host itself and then define the proxy vars as environment variables, e.g.
inventory.ini ansible_host=xx.xx.xx.xx ansible_user=username ansible_password=password ansible_port=5986 ansible_connection=winrm ansible_winrm_server_cert_validation=ignore When running Ansible make sure you have defined the following environment variables export HTTPS_PROXY=https://proxyhost:3128 ansible-playbook -i inventory.ini main.yml Unfortunately there is no way to programatically define the proxy for an individual host in Ansible as pywinrm does not expose those parameters. Thanks Jordan -- 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/5121db40-248a-47bf-8881-5a5de700b46f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
