When using the ansible-galaxy CLI to import roles, it's not possible to
specify an alternate_role_name, even though the REST API seems to allow
such a thing (at least on investigation of the interactions the web app
makes) That makes importing things like:
openstack/openstack-ansible-os_cloudkitty wind up with roles named
"openstack-ansible-os_cloudkitty" instead of "os_cloudkitty".
Also, the web ui is smart and imports
"openstack-infra/ansible-role-puppet" as openstack-infra.puppet ... but
the CLI imports it as openstack-infra.ansible-role-puppet. Add that
filtering as well.
Issue ansible/galaxy-issues:#185
pull/18229/head
Monty Taylor9 years agocommitted byChris Houseknecht
self.parser.add_option('--no-wait',dest='wait',action='store_false',default=True,help='Don\'t wait for import results.')
self.parser.add_option('--no-wait',dest='wait',action='store_false',default=True,help='Don\'t wait for import results.')
self.parser.add_option('--branch',dest='reference',help='The name of a branch to import. Defaults to the repository\'s default branch (usually master)')
self.parser.add_option('--branch',dest='reference',help='The name of a branch to import. Defaults to the repository\'s default branch (usually master)')
self.parser.add_option('--role-name',dest='role_name',help='The name the role should have, if different than the repo name')
self.parser.add_option('--status',dest='check_status',action='store_true',default=False,help='Check the status of the most recent import request for given github_user/github_repo.')
self.parser.add_option('--status',dest='check_status',action='store_true',default=False,help='Check the status of the most recent import request for given github_user/github_repo.')
elifself.action=="info":
elifself.action=="info":
self.parser.set_usage("usage: %prog info [options] role_name[,version]")
self.parser.set_usage("usage: %prog info [options] role_name[,version]")