-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collection does not work with proxy setup #100
Comments
ansible_acx_no_proxy is when use ansible_connection with httpapi and ansible_aoscx_use_proxy with ansible_connection arubanetworks.aoscx.aoscx |
Thanks. I've just tried to set ansible_aoscx_use_proxy to True only and still it's failed. |
BTW, these commands work fine from my laptop using proxy:
|
Thank you for bringing this to our attention, I'll try to reproduce and bring this up internally! Out of curiosity, if you export |
Yeah, I tried it, it did not change anything. |
Hello. I have following setup: my laptop -> AWS Jumphost -> Site-to-site VPN -> Aruba 6100 (JL676A) switch.
I configured tinyproxy in AWS jumpbox and it's listening on 127.0.0.1:8888. I use SSH port forwarding to reach the proxy from my laptop:
ssh -N -L 8888:127.0.0.1:8888 jumpbox_ip
. I exported HTTPS_PROXY and HTTP_PROXY ENV variables in my ~/.bashrc:I can reach web UI of the switch from my laptop using curl:
curl -k https://switch_ip:443
. Also when I set proxy in my browser, I can reach webui of the switch using it's IP in the browser, so proxy works fine.When I run an ansible task in playbook to gather facts on the switch:
I get:
My inventory looks like:
I tried playing with
ansible_aoscx_use_proxy
andansible_acx_no_proxy
variables, setting them toTrue
orFalse
, but it did not help. Only difference was in error message:"msg": "Could not get PYAOSCX Session: LOGIN ERROR, ERROR: Error connecting to host: connection attempt timed out."
Also I tried unsetting
environment
in ansible task.What's the difference between
ansible_aoscx_use_proxy
andansible_acx_no_proxy
variables?When I'm connected to the network where switch resides, playbook works perfectly fine, so somehow this collection does not work with proxy setup.
Please help me understanding how to use this collection with proxy.
Aruba switch firmware:
PL.10.13.1000
Ansible version:
2.15.8
Ansible collections versions:
The text was updated successfully, but these errors were encountered: