Closed pixeldoc2000 closed 2 years ago
Hi @pixeldoc2000 ! We've been trying to get to the bottom of this issue as well - are you able to downgrade your netcommon collection to version 1.4.1 and see if the issue persists?
ansible-galaxy collection install ansible.netcommon:1.4.1 -f
We've opened an issue with Ansible's netcommon collection here: https://github.com/ansible-collections/ansible.netcommon/issues/301
Also please make sure you've set
# uncomment this to disable SSH key host checking
host_key_checking = False
in your ansible.cfg file - to see which one you're using execute ansible --version
# uncomment this to disable SSH key host checking host_key_checking = False
host_key_checking
is disabled.
ansible.netcommon:1.4.1 does not support Ansible 2.11.5
TASK [Gathering Facts] ********************************************************************************************************************************************************************
[WARNING]: Collection ansible.netcommon does not support Ansible version 2.11.5
[WARNING]: Collection ansible.netcommon does not support Ansible version 2.11.5
@pixeldoc2000 the current workaround is to downgrade to ansible.netcommon==1.5.0
- we've opened up an issue with the Ansible collection and are pushing to get this resolved - thank you for your patience and understanding!
I'm happy to announce a fix for this issue has been published and you can now pull the latest version of our Collection to verify:
ansible-galaxy collection install arubanetworks.aoscx -f
Also ensure you're working with the most updated version of the ansible.netcommon
library as well:
ansible-galaxy collection install ansible.netcommon -f
Playbook Example:
inventory:
With ansible 2.10.7 or 2.11.5 i get the error with this playbook:
unterminated character set at position 0
Error with other Playbook:
Unable to decode JSON from response to exec_command('show running-config'). Received 'None'.
If i downgrade to ansible 2.9.26 everything runs fine:
Enviroment: Debian 11 with python 3.9 in virtualenv, fresh install with current packages.