-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
'argument ''api_version'' is of type <class ''NoneType''> found in ''provider''. #77
Comments
Can you share which versions of the |
do you have try to add api_version to task ?
What the switch model/firmware and configuration ? |
ansible.netcommon: 5.1.2
Adding The versions I run are YA.16.11.0008 and WC.16.11.0008 on all switches I intend to use. Yes, I probably need to update firmware anyway although it should be supported according to documentation. |
@ewbree I just released a version with a fix regarding this issue - please install the latest version of the collection with the following command and verify the issue is no longer seen: |
@tchiapuziowong Thanks for the update. :) |
It works when I use the command: ANSIBLE_NETWORK_GROUP_MODULES=arubaoss ansible-playbook -i hosts.yaml ./playbooks/network-devices/test.yaml VLAN 300 is created indeed. However, when I use the command: ansible-playbook -i hosts.yaml ./playbooks/network-devices/test.yaml I get the response: TASK [Create VLAN 300] *********************************************************************************************
fatal: [switch1]: FAILED! => changed=false
ansible_facts:
discovered_interpreter_python: /usr/bin/python3
msg: 'Request failed: <urlopen error [Errno -2] Name or service not known>'
status: -1
url: http://None:80/rest/v6.0/#-sessions The host file is as follows: all:
hosts:
switch1:
ansible_host: 10.32.255.51
ansible_user: admin
ansible_password: <<PASSWORD>>
ansible_connection: local
ansible_network_os: arubanetworks.aos_switch.arubaoss |
@ewbree you need to set the proper environment variables to use the collection - either by providing it in the command line (which you did in the first execution) or by creating an ansible.cfg file and including the network module that way - please read the instructions in this collection's README here: https://github.com/aruba/aos-switch-ansible-collection#setting-environment-variables |
Ah yes. I forgot... I will try it tomorrow morning. |
Everything seems to be working fine now. :) |
Whenever I try to run the example playbooks (or any other for that fact) I receive the following error:
Host in hostfile:
The playbook, to test function:
For both tasks above, I get thrown the exact same error.
Command to run the playbook:
ansible-playbook ./playbooks/network-devices/test3.yaml -i hosts.yaml
Ansible version:
The ansible.cfg contains the needed settings.
The text was updated successfully, but these errors were encountered: