Ansible-galaxy failing on importing roles

Please replace this text with a description of your issue. You should:

  • Give a clear explanation (and steps to reproduce the issue where possible)
    Trying to download roles using ansible-galaxy from private git repo

  • Include the version(s) of the relevant software tools, libraries, collections etc
    This is happening on RHEL 8 and 9 latest versions respectively.

[ansible@jump05 ansible1]$ /usr/bin/ansible-galaxy role install -p roles -r /opt/syseng/automation/ansible1/roles.yml -f -i -vvv
ansible-galaxy [core 2.16.3]
  config file = /opt/syseng/automation/ansible1/ansible.cfg
  configured module search path = ['/opt/syseng/automation/ansible1/{{ ANSIBLE_HOME ~ "/plugins/modules', '/usr/share/ansible/plugins/modules', '/opt/syseng/automation/ansible1/library" }}']
  ansible python module location = /usr/lib/python3.12/site-packages/ansible
  ansible collection location = /opt/syseng/automation/ansible1/ansible_collections:/opt/syseng/automation/ansible1/collection
  executable location = /usr/bin/ansible-galaxy
  python version = 3.12.3 (main, Jun 19 2024, 10:06:03) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] (/usr/bin/python3.12)
  jinja version = 3.1.2
  libyaml = True
  • Include relevant logs from the issue
    Example of what is in my roles.yml
- name: asm_grafana
  version: main
  scm: git
  src: http://10.150.10.61:3000/gitadmin/asm_grafana.git

Welcome to the forum, @andrewm659! You are not showing any logs of failures. Without them, it’s kind of hard to help you since it’s totally unclear what isn’t working.

1 Like

If your role contains symlinks, try upgrading to 2.16.7.