|
|
@ -42,7 +42,7 @@ from ansible.playbook.role.requirement import RoleRequirement
|
|
|
|
class GalaxyCLI(CLI):
|
|
|
|
class GalaxyCLI(CLI):
|
|
|
|
|
|
|
|
|
|
|
|
VALID_ACTIONS = ("init", "info", "install", "list", "remove", "search")
|
|
|
|
VALID_ACTIONS = ("init", "info", "install", "list", "remove", "search")
|
|
|
|
SKIP_INFO_KEYS = ("name", "description", "readme_html", "related", "summary_fields", "average_aw_composite", "average_aw_score", "url", "src" )
|
|
|
|
SKIP_INFO_KEYS = ("name", "description", "readme_html", "related", "summary_fields", "average_aw_composite", "average_aw_score", "url" )
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, args, display=None):
|
|
|
|
def __init__(self, args, display=None):
|
|
|
|
|
|
|
|
|
|
|
@ -184,7 +184,6 @@ class GalaxyCLI(CLI):
|
|
|
|
|
|
|
|
|
|
|
|
text = "\nRole: %s \n" % role_info['name']
|
|
|
|
text = "\nRole: %s \n" % role_info['name']
|
|
|
|
text += "\tdescription: %s \n" % role_info['description']
|
|
|
|
text += "\tdescription: %s \n" % role_info['description']
|
|
|
|
text += "\tsrc: %s \n" % role_info['src']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for k in sorted(role_info.keys()):
|
|
|
|
for k in sorted(role_info.keys()):
|
|
|
|
|
|
|
|
|
|
|
@ -329,10 +328,9 @@ class GalaxyCLI(CLI):
|
|
|
|
role_info.update(role_spec)
|
|
|
|
role_info.update(role_spec)
|
|
|
|
|
|
|
|
|
|
|
|
data += self._display_role_info(role_info)
|
|
|
|
data += self._display_role_info(role_info)
|
|
|
|
if data:
|
|
|
|
if not data:
|
|
|
|
data += "\n- %s:" % (role)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
data += "\n- the role %s was not found" % role
|
|
|
|
data += "\n- the role %s was not found" % role
|
|
|
|
|
|
|
|
|
|
|
|
self.pager(data)
|
|
|
|
self.pager(data)
|
|
|
|
|
|
|
|
|
|
|
|
def execute_install(self):
|
|
|
|
def execute_install(self):
|
|
|
|