michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 61 forks source link

Ansible Galaxy imports failing #143

Open markgoddard opened 1 year ago

markgoddard commented 1 year ago

We have an action to automatically import this role, but it seems to be failing: https://github.com/michaelrigart/ansible-role-interfaces/actions/workflows/publish-role.yml

cityofships commented 11 months ago

Is this because GALAXY_API_KEY secret is missing?

markgoddard commented 11 months ago

Yes, I expect so. @michaelrigart , are you able to set this secret for the repo?

michaelrigart commented 11 months ago

@markgoddard : I just set the Ansible API key as repo secret, but the action still seems to fail.

Could this be due to the capitalization of my Galaxy username MichaelRigart vs small-caps on github (michaelrigart), since the command it runs is: ansible-galaxy import michaelrigart xyz?

cityofships commented 11 months ago

@markgoddard : I just set the Ansible API key as repo secret, but the action still seems to fail.

Could this be due to the capitalization of my Galaxy username MichaelRigart vs small-caps on github (michaelrigart), since the command it runs is: ansible-galaxy import michaelrigart xyz?

Yes, that's the reason - gives 500 if tried from command line too.

michaelrigart commented 11 months ago

It seems that I can't change the namespace on Galaxy neither.

michaelrigart commented 11 months ago

I have created an issue on the Galaxy GH repo. Hopefully it can be resolved: https://github.com/ansible/galaxy/issues/3217

markgoddard commented 8 months ago

Since the roll out of Galaxy NG there is no UI for importing roles, and when I tried to do it manually it took a few goes to make it work.

First, you need to use the capitalised MichaelRigart namespace. Next, you need to specify the tag via --branch, otherwise it uploads the master branch.

ansible-galaxy role import MichaelRigart ansible-role-interfaces  --api-key <key> --branch v1.14.4

I've updated the GitHub actions publish workflow to do this, but unfortunately it failed with a 403. @michaelrigart perhaps you need to regenerate a new API token for NG galaxy?