# Ansible x Aruba Switch 2930M - unable to run playbooks

**URL:** <https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590>\
**Category:** Get Help\
**Tags:** arubanetworks, windows, ubuntu, collections, galaxy-ng\
**Created:** [November 27, 2023, 3:05pm UTC](https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590 "2023-11-27T15:05:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartpuma](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bartpuma/32/1640_2.png) [@bartpuma](https://forum.ansible.com/u/bartpuma)\
**Post date:** [November 27, 2023, 3:05pm UTC](https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590/1 "2023-11-27T15:05:10Z")

</div>

Dear Friends,

I am in the middle of the deployment of ~200 x Aruba switches (Aruba JL322A 2930M-48G-PoE+ Switch - Software revision WC.16.10.0009).

I am looking for a way of automation of gathering information and config.

I am running the WSL2 on Windows 11, which means I’ve installed Ubuntu 22.04 virtually on my Windows. Ansible core 2.15.6 is installed on Ubuntu.

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/1/108647116b3cede8e4e926fb071c4d73bebc5389.png)

I managed to run playbooks at similar site about 2 years ago, but now I am being told that method that I was using is deprecated and I should use ansible-galaxy.  
I installed AOS-Switch Ansible Collection from the Galaxy portal.

![image|  
I am able to ssh from Ubuntu via SSH and access the example SW005 via web-gui.

this is my example playbook:  
![image|

this is my example inventory:  
![image|

Here is my ansible.cfg (part of it)  
![image|

host\_key\_checking = False \<–this is already in place

Here is my host file:  
![image|

There are two modes of achieving the goal:  
via SSH  
via API  
Having running any of them, not even both will be great for me.

After long days of trying to have it working I am forced to seek for some help. I have different faulty errors. I believe that 5 minutes of somebody who knows how-to could save my life forever.

Dear Community please help me out!

Kind Regards,  
Bart

---

<div class="post-metadata">

**Author:** ![bartpuma](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bartpuma/32/1640_2.png) [@bartpuma](https://forum.ansible.com/u/bartpuma)\
**Post date:** [November 27, 2023, 3:10pm UTC](https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590/2 "2023-11-27T15:10:51Z")

</div>

![image](https://us1.discourse-cdn.com/ansible/original/2X/c/cc8ec5873c5f9f655999b14a6f389983a4c6d906.png)

---

<div class="post-metadata">

**Author:** ![bartpuma](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bartpuma/32/1640_2.png) [@bartpuma](https://forum.ansible.com/u/bartpuma)\
**Post date:** [November 27, 2023, 3:11pm UTC](https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590/3 "2023-11-27T15:11:23Z")

</div>

![image](https://us1.discourse-cdn.com/ansible/original/2X/5/5862ad30d6e33ad7185903573763735ff52563a0.png)

---

<div class="post-metadata">

**Author:** ![bartpuma](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bartpuma/32/1640_2.png) [@bartpuma](https://forum.ansible.com/u/bartpuma)\
**Post date:** [November 27, 2023, 3:11pm UTC](https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590/4 "2023-11-27T15:11:54Z")

</div>

![image](https://us1.discourse-cdn.com/ansible/original/2X/9/9cdc40a9065410551e62362e8d997f1e6ba3b4c0.png)

---

<div class="post-metadata">

**Author:** ![bartpuma](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bartpuma/32/1640_2.png) [@bartpuma](https://forum.ansible.com/u/bartpuma)\
**Post date:** [November 27, 2023, 3:12pm UTC](https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590/5 "2023-11-27T15:12:28Z")

</div>

![image](https://us1.discourse-cdn.com/ansible/original/2X/4/45f4a5eadea1dd4f4c51c78cdadf06513581d9a6.png)

---

<div class="post-metadata">

**Author:** ![ptn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ptn/32/481_2.png) [@ptn](https://forum.ansible.com/u/ptn)\
**Post date:** [November 28, 2023, 5:09pm UTC](https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590/6 "2023-11-28T17:09:34Z")

</div>

Hi,

According to [documentation](https://github.com/aruba/aos-switch-ansible-collection#sshcli-modules), `arubaoss_command` module indeed uses `network_cli` as connection plugin, but the output bit you showed displayed an error seemingly trying to reach a REST API endpoint (the `"url":` key part). Or is that the task using `arubaoss_vlan` module which is failing ?

So what happens if you change connection mode to `local` ? Also be sure to [enable REST interface](https://github.com/aruba/aos-switch-ansible-collection#requirements) on your device.

Edit: If that doesn’t help, please also share a full verbose (`-vvv`) output, preferably in textual form that you could push on any pastebin-like online service.

---

<div class="post-metadata">

**Author:** ![sgeboers](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sgeboers](https://forum.ansible.com/u/sgeboers)\
**Post date:** [February 16, 2025, 5:51pm UTC](https://forum.ansible.com/t/ansible-x-aruba-switch-2930m-unable-to-run-playbooks/2590/7 "2025-02-16T17:51:07Z")

</div>

Did you solve the problem ? Are the Aruba 3920M compatible with ansible ?
