Clarification for namespace from beginner

Hi,

I started to publish a few roles on Ansible Galaxy

Beginner issue:

  • Missing validation of my code with ansible-lint
  • Missing tag version
    I’m working to resolve these issues.

ansible-lint gives me a warning for the missing namespace in meta/main.yml
So I add mine “lucasjanin”

After this, no warning of ansible-lint

Passed: 0 failure(s), 0 warning(s) on 11 files. Last profile that met the validation criteria was 'production'.

But ansible-galaxy import fails:

===== PROCESSING LOADER RESULTS ====
overriding namespace name via metadata: lucasjanin
legacy namespace lucasjanin does not exist

Thanks in advance for any help

Hey, it sounds like you’re bumping into a namespace mismatch. ansible-lint is cool with your custom “lucasjanin” in meta/main.yml since it only checks code style. But Galaxy’s import process is stricter—it expects that legacy namespace to already exist.

Your options are simple:

Remove the override: Let Galaxy use your default account namespace.

Register the namespace: If you really want “lucasjanin”, get it set up as a legacy namespace on Galaxy.

1 Like