|
|
@ -170,7 +170,7 @@ def build_option_parser(action):
|
|
|
|
parser.set_usage("usage: %prog init [options] role_name")
|
|
|
|
parser.set_usage("usage: %prog init [options] role_name")
|
|
|
|
parser.add_option(
|
|
|
|
parser.add_option(
|
|
|
|
'-p', '--init-path', dest='init_path', default="./",
|
|
|
|
'-p', '--init-path', dest='init_path', default="./",
|
|
|
|
help='The path in which the skeleton role will be created.'
|
|
|
|
help='The path in which the skeleton role will be created. '
|
|
|
|
'The default is the current working directory.')
|
|
|
|
'The default is the current working directory.')
|
|
|
|
elif action == "install":
|
|
|
|
elif action == "install":
|
|
|
|
parser.set_usage("usage: %prog install [options] [-r FILE | role_name(s)[,version] | tar_file(s)]")
|
|
|
|
parser.set_usage("usage: %prog install [options] [-r FILE | role_name(s)[,version] | tar_file(s)]")
|
|
|
@ -192,7 +192,7 @@ def build_option_parser(action):
|
|
|
|
if action != "init":
|
|
|
|
if action != "init":
|
|
|
|
parser.add_option(
|
|
|
|
parser.add_option(
|
|
|
|
'-p', '--roles-path', dest='roles_path', default=C.DEFAULT_ROLES_PATH,
|
|
|
|
'-p', '--roles-path', dest='roles_path', default=C.DEFAULT_ROLES_PATH,
|
|
|
|
help='The path to the directory containing your roles.'
|
|
|
|
help='The path to the directory containing your roles. '
|
|
|
|
'The default is the roles_path configured in your '
|
|
|
|
'The default is the roles_path configured in your '
|
|
|
|
'ansible.cfg file (/etc/ansible/roles if not configured)')
|
|
|
|
'ansible.cfg file (/etc/ansible/roles if not configured)')
|
|
|
|
|
|
|
|
|
|
|
|