namespace: digitalis

Namespace Request

Namespace: digitalis

Description

This namespace will host official Ansible roles and collections for Digitalis.io, focusing on infrastructure automation, database management, and cloud orchestration tools.

GitHub Org Link

Admins

@digiserg

1 Like

Hi @digiserg

Welcome to the Ansible forum! That’s all set up for you :slightly_smiling_face:

Hope you have a great day!

Hi @dbrennand

Thank you very much for the quick response. I made a stupid error, our github owner is “digitalis-io” and not “digitalis”. Are you able to rename it or shall I send a new request?

Thank you

Hi @digiserg - We cannot rename a namespace once created. You will need to submit a new request. Just to confirm, you’re saying the namespace name should have been digitalis-io rather than digitalis?

Please note that - in namespace names are not possible. The namespace would have to be called digitalis_io.

I tried submitting this role

If I understand correctly, the namespace has to match the github owner, right? At least, I’m getting an error

===== CLONING REPO =====
cloning https://github.com/digitalis/ansible-role-rabbitmq ...
cloning failed: Cloning into '/tmp/tmp51c7ag2k/ansible-role-rabbitmq'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled

A similar error was reported here: Unable to import role into galaxy namespace based on github org

What was the exact command you used to import the role? Please do not include the token in the command.

ansible-galaxy role import --token $TOKEN --role-name rabbitmq digitalis-io ansible-role-rabbitmq
[ERROR]: None (HTTP Code: 500, Message: Internal Server Error)

As suggested in the other thread, could you add some verbosity to the command -vvvv so we can see the debug logs for ansible-galaxy please?

Nothing else to share, just a 500 error. The issue appears to be because our github owner name contains a - (digitails-io) and you don’t support that. Can you suggest any workarounds?

Hey @digiserg

Hope you’re well :slightly_smiling_face:

Wanted to check in and see if you’re still having trouble here?

If so, please could you try the following. In your role’s meta/main.yml file:

galaxy_info:
  namespace: digitalis
  role_name: rabbitmq
ansible-galaxy role import --token "$TOKEN" digitalis-io ansible-role-rabbitmq
Run ansible-galaxy role import \
  ansible-galaxy role import \
    --token "***" \
    "digitalisio" \
    "ansible-role-rabbitmq"
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.13.13/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.13.13/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.13/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.13/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.13/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.13.13/x64/lib
Error: : None (HTTP Code: 500, Message: Internal Server Error)
Error: Process completed with exit code 1.

You need the hyphen in the github_user positional argument for ansible-galaxy: digitalis-io

Apologies, long day

  ansible-galaxy role import \
    --token "***" \
    "digitalis-io" \
    "ansible-role-rabbitmq"

and meta is

galaxy_info:
  role_name: rabbitmq
  namespace: digitalis
  author: Digitalis.IO DevOps Team

I tried using digitalis, digitalisio and digitalis-io

1 Like

Can see the most recent test: Correct namespace · digitalis-io/ansible-role-rabbitmq@00a607d · GitHub

Can you please try using the REST API directly. Replace AG_TOKEN in the command below as needed:

curl -X 'POST' \
  "https://galaxy.ansible.com/api/v1/imports/" \
  -H 'Content-Type: application/json' \
  -H "Authorization: Token ${AG_TOKEN}" \
  --data-raw '{"github_repo": "ansible-role-rabbitmq", "github_user": "digitalis", "alternate_clone_url": "https://github.com/digitalis-io/ansible-role-rabbitmq"}'

Looks like it worked! how does it look your end?

1 Like

Yes, I can see it uploaded on Galaxy. :+1: