Hi Jordan, Thanks for your detailed reply
I dont want ansible to use the proxy host defined in the centos machine and that proxy is used by another orchestration tool . How I can set in the playbook not to use any proxy while connecting to the remote machine? On Tuesday, November 6, 2018 at 2:46:46 AM UTC+5:30, Jordan Borean wrote: > > Looks like you are trying to connect through a proxy? The winrm connection > plugin doesn't allow you to explicitly define a proxy in the inventory so > it would need to be set in the environment variables using the > http_proxy/http_proxy env vars. You can use the newer psrp connection > plugin to define a proxy in Ansible like; > > [windows] > windows-server > > [windows:vars] > ansible_username=username > ansible_pass=pass > ansible_connection=psrp > ansible_psrp_proxy=proxyhost:9480 > > There are some other variables that you can set like > 'ansible_psrp_cert_validation' but have a look at the docs for more info > https://docs.ansible.com/ansible/latest/plugins/connection/psrp.html. > > 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1de49d19-abc8-4255-bdca-3d071d3f0084%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.