Require that ansible managed hosts be in the list of hosts to manage to avoid
option overload.pull/4420/head
parent
01e5da6d0b
commit
4ba366c2d1
|
@ -49,9 +49,6 @@ def main(args):
|
||||||
sshpass = None
|
sshpass = None
|
||||||
if options.askpass:
|
if options.askpass:
|
||||||
sshpass = getpass.getpass(prompt="SSH password: ")
|
sshpass = getpass.getpass(prompt="SSH password: ")
|
||||||
pattern = '*'
|
|
||||||
if options.host:
|
|
||||||
pattern += ';'.join(options.host)
|
|
||||||
|
|
||||||
if options.output_dest:
|
if options.output_dest:
|
||||||
if options.output_dest[0] != '/':
|
if options.output_dest[0] != '/':
|
||||||
|
@ -81,7 +78,7 @@ def main(args):
|
||||||
remote_pass=sshpass,
|
remote_pass=sshpass,
|
||||||
host_list=options.host_list,
|
host_list=options.host_list,
|
||||||
forks=options.forks,
|
forks=options.forks,
|
||||||
pattern=pattern,
|
pattern=options.pattern,
|
||||||
verbose=True,
|
verbose=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue