Skip to content

Instantly share code, notes, and snippets.

@konstruktoid
Last active May 21, 2024 10:48
Show Gist options
  • Save konstruktoid/dffb4ebc3643f4acceb8126da39be938 to your computer and use it in GitHub Desktop.
Save konstruktoid/dffb4ebc3643f4acceb8126da39be938 to your computer and use it in GitHub Desktop.

ansible --version

ansible [core 2.16.7]
  config file = None
  configured module search path = ['/home/vagrant/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/vagrant/ansible/lib/python3.12/site-packages/ansible
  ansible collection location = /home/vagrant/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/vagrant/ansible/bin/ansible
  python version = 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] (/home/vagrant/ansible/bin/python3)
  jinja version = 3.1.4
  libyaml = True
ansible-galaxy [core 2.16.7]
  config file = None
  configured module search path = ['/home/vagrant/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/vagrant/ansible/lib/python3.12/site-packages/ansible
  ansible collection location = /home/vagrant/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/vagrant/ansible/bin/ansible-galaxy
  python version = 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] (/home/vagrant/ansible/bin/python3)
  jinja version = 3.1.4
  libyaml = True

ansible-galaxy install -vvv -r requirements.yml

No config file found; using defaults
Reading requirement file at '/home/vagrant/requirements.yml'
Starting galaxy collection install process
Found installed collection dellemc.enterprise_sonic:2.4.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/dellemc/enterprise_sonic'
Found installed collection community.general:8.6.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/general'
Found installed collection ibm.spectrum_virtualize:2.0.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ibm/spectrum_virtualize'
Found installed collection community.postgresql:3.4.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/postgresql'
Found installed collection community.vmware:4.4.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/vmware'
Found installed collection amazon.aws:7.6.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/amazon/aws'
Found installed collection frr.frr:2.0.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/frr/frr'
Found installed collection dellemc.powerflex:2.4.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/dellemc/powerflex'
Found installed collection vyos.vyos:4.1.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/vyos/vyos'
Found installed collection google.cloud:1.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/google/cloud'
Found installed collection netapp.elementsw:21.7.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netapp/elementsw'
Found installed collection fortinet.fortios:2.3.6 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/fortinet/fortios'
Found installed collection netapp.cloudmanager:21.22.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netapp/cloudmanager'
Found installed collection community.network:5.0.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/network'
Found installed collection cisco.asa:4.0.3 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/asa'
Found installed collection community.grafana:1.8.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/grafana'
Found installed collection community.dns:2.9.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/dns'
Found installed collection awx.awx:23.9.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/awx/awx'
Found installed collection kubernetes.core:2.4.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/kubernetes/core'
Found installed collection community.hrobot:1.9.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/hrobot'
Found installed collection community.routeros:2.15.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/routeros'
Found installed collection infoblox.nios_modules:1.6.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/infoblox/nios_modules'
Found installed collection cisco.meraki:2.18.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/meraki'
Found installed collection openstack.cloud:2.2.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/openstack/cloud'
Found installed collection community.ciscosmb:1.0.9 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/ciscosmb'
Found installed collection dellemc.openmanage:8.7.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/dellemc/openmanage'
Found installed collection cisco.nxos:5.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/nxos'
Found installed collection ngine_io.exoscale:1.1.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ngine_io/exoscale'
Found installed collection wti.remote:1.0.5 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/wti/remote'
Found installed collection vmware.vmware_rest:2.3.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/vmware/vmware_rest'
Found installed collection microsoft.ad:1.5.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/microsoft/ad'
Found installed collection grafana.grafana:2.2.5 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/grafana/grafana'
Found installed collection kaytus.ksmanage:1.2.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/kaytus/ksmanage'
Found installed collection openvswitch.openvswitch:2.1.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/openvswitch/openvswitch'
Found installed collection community.hashi_vault:6.2.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/hashi_vault'
Found installed collection netapp.storagegrid:21.12.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netapp/storagegrid'
Found installed collection cisco.ise:2.9.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/ise'
Found installed collection cisco.dnac:6.13.3 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/dnac'
Found installed collection ansible.windows:2.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ansible/windows'
Found installed collection community.mongodb:1.7.4 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/mongodb'
Found installed collection purestorage.fusion:1.6.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/purestorage/fusion'
Found installed collection hetzner.hcloud:2.5.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/hetzner/hcloud'
Found installed collection purestorage.flashblade:1.17.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/purestorage/flashblade'
Found installed collection containers.podman:1.13.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/containers/podman'
Found installed collection community.okd:2.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/okd'
Found installed collection gluster.gluster:1.0.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/gluster/gluster'
Found installed collection ibm.storage_virtualize:2.3.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ibm/storage_virtualize'
Found installed collection chocolatey.chocolatey:1.5.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/chocolatey/chocolatey'
Found installed collection hpe.nimble:1.1.4 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/hpe/nimble'
Found installed collection cisco.mso:2.6.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/mso'
Found installed collection arista.eos:6.2.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/arista/eos'
Found installed collection netapp.aws:21.7.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netapp/aws'
ERROR! Unexpected Exception, this is probably a bug: Non integer values in LooseVersion ('stable-8')
Found installed collection ngine_io.cloudstack:2.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ngine_io/cloudstack'
Found installed collection community.mysql:3.9.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/mysql'
Found installed collection netapp.azure:21.10.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netapp/azure'
Found installed collection ansible.utils:2.12.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ansible/utils'
Found installed collection infinidat.infinibox:1.4.5 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/infinidat/infinibox'
Found installed collection cloud.common:2.1.4 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cloud/common'
Found installed collection telekom_mms.icinga_director:1.35.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/telekom_mms/icinga_director'
Found installed collection cisco.intersight:2.0.9 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/intersight'
Found installed collection community.crypto:2.20.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/crypto'
Found installed collection netapp_eseries.santricity:1.4.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netapp_eseries/santricity'
Found installed collection community.zabbix:2.4.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/zabbix'
Found installed collection t_systems_mms.icinga_director:2.0.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/t_systems_mms/icinga_director'
Found installed collection lowlydba.sqlserver:2.3.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/lowlydba/sqlserver'
Found installed collection community.rabbitmq:1.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/rabbitmq'
Found installed collection ansible.posix:1.5.4 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ansible/posix'
Found installed collection community.sap_libs:1.4.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/sap_libs'
Found installed collection netbox.netbox:3.18.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netbox/netbox'
Found installed collection inspur.sm:2.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/inspur/sm'
Found installed collection purestorage.flasharray:1.28.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/purestorage/flasharray'
Found installed collection cisco.ucs:1.10.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/ucs'
Found installed collection community.windows:2.2.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/windows'
Found installed collection community.aws:7.2.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/aws'
Found installed collection cisco.ios:5.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/ios'
Found installed collection cisco.aci:2.9.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/aci'
Found installed collection community.digitalocean:1.26.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/digitalocean'
Found installed collection fortinet.fortimanager:2.5.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/fortinet/fortimanager'
Found installed collection netapp.um_info:21.8.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netapp/um_info'
Found installed collection community.sap:2.0.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/sap'
Found installed collection netapp.ontap:22.11.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/netapp/ontap'
Found installed collection junipernetworks.junos:5.3.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/junipernetworks/junos'
Found installed collection cloudscale_ch.cloud:2.3.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cloudscale_ch/cloud'
Found installed collection ovirt.ovirt:3.2.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ovirt/ovirt'
Found installed collection community.sops:1.6.7 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/sops'
Found installed collection inspur.ispim:2.2.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/inspur/ispim'
Found installed collection dellemc.unity:1.7.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/dellemc/unity'
Found installed collection check_point.mgmt:5.2.3 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/check_point/mgmt'
Found installed collection ibm.qradar:2.1.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ibm/qradar'
Found installed collection azure.azcollection:1.19.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/azure/azcollection'
Found installed collection f5networks.f5_modules:1.28.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/f5networks/f5_modules'
Found installed collection community.proxysql:1.5.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/proxysql'
Found installed collection cyberark.conjur:1.2.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cyberark/conjur'
Found installed collection splunk.es:2.1.2 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/splunk/es'
Found installed collection community.library_inventory_filtering_v1:1.0.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/library_inventory_filtering_v1'
Found installed collection cisco.iosxr:6.1.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cisco/iosxr'
Found installed collection community.azure:2.0.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/azure'
Found installed collection cyberark.pas:1.0.25 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/cyberark/pas'
Found installed collection community.docker:3.10.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/docker'
Found installed collection vultr.cloud:1.12.1 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/vultr/cloud'
Found installed collection theforeman.foreman:3.15.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/theforeman/foreman'
Found installed collection ansible.netcommon:5.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/ansible/netcommon'
Found installed collection sensu.sensu_go:1.14.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/sensu/sensu_go'
Found installed collection community.libvirt:1.3.0 at '/home/vagrant/ansible/lib/python3.12/site-packages/ansible_collections/community/libvirt'
the full traceback was:

Traceback (most recent call last):
  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/cli/__init__.py", line 659, in cli_executor
    exit_code = cli.run()
                ^^^^^^^^^
  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/cli/galaxy.py", line 749, in run
    return context.CLIARGS['func']()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/cli/galaxy.py", line 120, in method_wrapper
    return wrapped_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/cli/galaxy.py", line 1409, in execute_install
    self._execute_install_collection(
  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/cli/galaxy.py", line 1458, in _execute_install_collection
    install_collections(
  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/galaxy/collection/__init__.py", line 698, in install_collections
    if req.fqcn == exs.fqcn and meets_requirements(exs.ver, req.ver)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/galaxy/dependency_resolution/versioning.py", line 63, in meets_requirements
    SemanticVersion.from_loose_version(LooseVersion(requirement)),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/utils/version.py", line 176, in from_loose_version
    raise ValueError("Non integer values in %r" % loose_version)
ValueError: Non integer values in LooseVersion ('stable-8')

requirements.yml

---
collections:
  - name: community.aws
    version: "stable-8"
    source: https://github.com/ansible-collections/community.aws.git
    type: git
@konstruktoid
Copy link
Author

https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-multiple-roles-from-a-file:
"version:
The version of the role to download. Provide a release tag value, commit hash, or branch name. Defaults to the branch set as a default in the repository, otherwise defaults to the master."

@konstruktoid
Copy link
Author

  File "/home/vagrant/ansible/lib/python3.12/site-packages/ansible/galaxy/collection/__init__.py", line 698, in install_collections
    if req.fqcn == exs.fqcn and meets_requirements(exs.ver, req.ver)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

https://github.com/ansible/ansible/blob/560d3af09731293c59fb49f4b43e737efda2c001/lib/ansible/galaxy/dependency_resolution/versioning.py#L23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment