I am no longer able to upload a role:
my github handle is ngine-io
but my galaxy handle is ngine_io
(it was not possible to have a dash in old galaxy)
ansible-galaxy role import --token "$ANSIBLE_GALAXY_API_KEY" --role-name blocky_dns ngine_io $(echo ngine-io/ansible-role-blocky-dns | cut -d/ -f2)
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.0/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.0/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0/x64/lib
ANSIBLE_GALAXY_API_KEY: ***
Successfully submitted import request 2057232600007771784458545899491962417
Starting import: task_id=2057232600007771784458545899491962417, pulp_id=018c3565-effe-7c86-bbe3-3f12318e2e31
==== PARAMETERS ====
importer username: resmo
matched user: resmo id:4865
github_user: ngine_io
github_repo: ansible-role-blocky-dns
github_reference: None
alternate_role_name: blocky_dns
==== CHECK FOR MATCHING ROLE(S) ====
user:ngine_io repo:ansible-role-blocky-dns did not match any existing roles
===== CLONING REPO =====
cloning https://github.com/ngine_io/ansible-role-blocky-dns ...
cloning failed: Cloning into '/tmp/tmp4huo6qbt/ansible-role-blocky-dns'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
The action is marked as success but as you can see on the last line, it says “failed” and it tryies to clone the wrong repo due to the wrong gh handle used ngine_io
NOTE: See the same issue for collections (but there was a workaround) [regression?] galaxy ng namespace with "-" vs "_"