Strange
What ansible release ?
do you have check your file (and indent ?)
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
------------------------------
Original Message:
Sent: Jun 21, 2021 11:04 AM
From: Joakim Nordin
Subject: http://none... when using arubanetworks.aos_switch against REST
I have a container running AWX into which I have installed the aos_switch collection, also I have a [git project]/collections/requirements.yml
telling ansible that arubanetworks.aos_switch is needed.
When I run SSH command (network_cli arubaoss_command) it works fine against my lab Aruba switch. Whenever I try to run REST though, I get that it want to run against: http://None:80/rest/v6.0/login-sessions which obviously give me a "Request failed: <urlopen error [Errno -2] Name or service not known>".
In the project folder root I have an ansible.cfg-file which contains[defaults]
ANSIBLE_NETWORK_GROUP_MODULES=arubaoss
(I also tried to put this into /etc/ansible/ansible.cfg, I see it want to run this cfg for some reason when I increase the verbosity. Same result though)
Since it works against the switch using SSH I assume my host config is correct. I have put this in the variables section for the host
ansible_host: 10.0.0.100
ansible_connection: local
ansible_network_os: arubanetworks.aos_switch.arubaoss
In the playbook I have this
ansible_network_os: arubaoss
and specified the collection arubanetworks.aos_switch
Anyone have any tips on things I can try, as I've tried all the solutions I can find googling this issue? Obviously I'm missing something, but I can't figure out what.
Oh, and I should mention that I've tried to manually connect to the REST interface and that works fine.
The hints I get from people who solved this, most of them seem to have been missing
ANSIBLE_NETWORK_GROUP_MODULES=arubaoss, but since I specified this in the ansible.cfg-file that ansible tells me it wants to use it seems to me that this should not be the issue for me.
------------------------------
Joakim Nordin
------------------------------