|
|
@ -98,10 +98,15 @@ def main():
|
|
|
|
password = module.params.get('password')
|
|
|
|
password = module.params.get('password')
|
|
|
|
|
|
|
|
|
|
|
|
supervisorctl_args = [ module.get_bin_path('supervisorctl', True) ]
|
|
|
|
supervisorctl_args = [ module.get_bin_path('supervisorctl', True) ]
|
|
|
|
if config: supervisorctl_args.extend(['-c', config])
|
|
|
|
|
|
|
|
if server_url: supervisorctl_args.extend(['-s', server_url])
|
|
|
|
if config:
|
|
|
|
if username: supervisorctl_args.extend(['-u', username])
|
|
|
|
supervisorctl_args.extend(['-c', config])
|
|
|
|
if password: supervisorctl_args.extend(['-p', password])
|
|
|
|
if server_url:
|
|
|
|
|
|
|
|
supervisorctl_args.extend(['-s', server_url])
|
|
|
|
|
|
|
|
if username:
|
|
|
|
|
|
|
|
supervisorctl_args.extend(['-u', username])
|
|
|
|
|
|
|
|
if password:
|
|
|
|
|
|
|
|
supervisorctl_args.extend(['-p', password])
|
|
|
|
|
|
|
|
|
|
|
|
def run_supervisorctl(cmd, name=None, **kwargs):
|
|
|
|
def run_supervisorctl(cmd, name=None, **kwargs):
|
|
|
|
args = list(supervisorctl_args) # copy the master args
|
|
|
|
args = list(supervisorctl_args) # copy the master args
|
|
|
|