|
|
|
@ -50,7 +50,7 @@ except ImportError:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class GalaxyCLI(CLI):
|
|
|
|
|
'''command to manage Ansible roles in shared repostories, the default of which is Ansible Galaxy *https://galaxy.ansible.com*.'''
|
|
|
|
|
'''command to manage Ansible roles in shared repositories, the default of which is Ansible Galaxy *https://galaxy.ansible.com*.'''
|
|
|
|
|
|
|
|
|
|
SKIP_INFO_KEYS = ("name", "description", "readme_html", "related", "summary_fields", "average_aw_composite", "average_aw_score", "url")
|
|
|
|
|
VALID_ACTIONS = ("delete", "import", "info", "init", "install", "list", "login", "remove", "search", "setup")
|
|
|
|
@ -121,7 +121,7 @@ class GalaxyCLI(CLI):
|
|
|
|
|
# callback will set the value to a list.
|
|
|
|
|
self.parser.add_option('-p', '--roles-path', dest='roles_path', action="callback", callback=CLI.unfrack_paths, default=C.DEFAULT_ROLES_PATH,
|
|
|
|
|
help='The path to the directory containing your roles. The default is the roles_path configured in your ansible.cfg'
|
|
|
|
|
'file (/etc/ansible/roles if not configured)', type='str')
|
|
|
|
|
' file (/etc/ansible/roles if not configured)', type='str')
|
|
|
|
|
if self.action in ("init", "install"):
|
|
|
|
|
self.parser.add_option('-f', '--force', dest='force', action='store_true', default=False, help='Force overwriting an existing role')
|
|
|
|
|
|
|
|
|
|