Closed lorien closed 5 years ago
@lorien
The current version of mazer doesn't support install traditional roles (like geerlingguy/ansible-role-nginx
) directly anymore. Mazer now only supports install of 'collections' (unlike ansible-galaxy
), though using scm urls for collections is also broken at the moment.
'direct install of traditional roles' meaning things like this aren't expected to work
mazer install geerlinguy.nginx
mazer install --namespace geerlingguy git+https://github.com/geerlingguy/ansible-role-nginx
But install of collections from galaxy is supported (though not from production galaxy.ansible.com quite yet) and meant to work:
mazer install alikins.collection_ntp
'alikins-collection_ntp-1.2.3.tar.gz' is the collection 'artifact' built as result of running 'mazer build' in a checkout of https://github.com/alikins/collection_ntp
mazer install /path/to/some/collection/artifact/alikins-collection_ntp-1.2.3.tar.gz
mazer install http://example.com/collections/alikins-collection_ntp-1.2.3.tar.gz
At the moment, collection installs from an scm_url don't quite work correctly either. They hit essentially the sane bug (and similar traceback) as you report, though I have a fix pending for that particular error.
I'm working on getting scm url installs of collections working again, but the scm url and install code paths need some changes to deal with the way scm urls aren't necessarily versioned. For example, if 'git+https://github.com/alikins/my_collection' was installed to satisfy a requirement for 'alikins.my_collection >= 2.0.0', https://github.com/alikins/my_collection may not have any versioning info, so it's hard to tell if the 'requirement' was solved.
The traceback is definitely a bug, but for that usage there will still be an error since 'ansible-role-nginx' is a role and not a 'collection', and mazer now only supports installing collections (but that is also broken at moment)
Between role install being not supported in mazer, and the scm url related fixes for #236 that should prevent the error this bug described, I'm considering this closed.
Bug Report
MAZER VERSION
Ansible:
CONFIGURATION
default
SUMMARY
Fail to install role from github.
STEPS TO REPRODUCE
EXPECTED RESULTS
Expect to not get an error
ACTUAL RESULTS
Error: