Hi All,
I have an ansible control node, which is the version 2.10.17
i need to install fortigate collection by the command:
ansible-galaxy collection install fortinet.fortios
but i receive the error message (regardless what comes after ansible-galaxy, i kepp on getting the same error message)
ERROR! Unexpected Exception, this is probably a bug: cannot import name ‘CollectionRequirement’
the full traceback was:
Traceback (most recent call last):
File “/usr/local/bin/ansible-galaxy”, line 92, in
mycli = getattr(import(“ansible.cli.%s” % sub, fromlist=[myclass]), myclass)
File “/usr/local/lib/python3.6/site-packages/ansible/cli/galaxy.py”, line 24, in
from ansible.galaxy.collection import (
ImportError: cannot import name ‘CollectionRequirement’
is there any idea how to overcome it?
Hi All,
I have an ansible control node, which is the version 2.10.17
Delete or replace that software, and update to a contemporary release
of ansible-core. There were big structural changes when ansible was
renamed ansible-core, and the enormous bundle of ansible collection
modules was renamed ansible. And yes, it's confusing, but that's what
happened. You now need "ansible-core".
i get the error message:
ERROR! Unknown error when attempting to call Galaxy at ‘https://galaxy.ansible.com/api/’: <urlopen error [Errno -2] Name or service not known>. <urlopen error [Errno -2] Name or service not known>