aruba / aoscx-ansible-role

Ansible roles for AOS-CX switches
24 stars 10 forks source link

Running the first aoscx playbook #14

Closed DungKHoang closed 3 years ago

DungKHoang commented 3 years ago

My ansible version is 2.9.1 I install aoscx ansible in an Ansible tower machine using the instructions in the readme file I verify that the role is in /etc/ansible/.roles I create an inventory file and try to run the aoscx_facts example and get the following error:

PLAY [all] ***

TASK [Gathering Facts] *** ok: [aoscx_1]

TASK [Execute show run on the switch] **** fatal: [aoscx_1]: FAILED! => {"msg": "Could not find imported module support code for aoscx. Looked for either to_list.py or utils.py"}

PLAY RECAP *** aoscx_1 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Any idea on how to fix this basic issue? Thanks!

tchiapuziowong commented 3 years ago

Hello!

This could be due to a missing dependency with the netcommon collection - could you execute this command to ensure it's installed and try to run the playbook again: ansible-galaxy collection install ansible.netcommon -f

DungKHoang commented 3 years ago

Beautiful! It works. Thanks so much