1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Require that ansible managed hosts be in the list of hosts to manage to avoid

option overload.
This commit is contained in:
Michael DeHaan 2012-02-28 01:34:28 -05:00
parent 01e5da6d0b
commit 4ba366c2d1

View file

@ -49,9 +49,6 @@ def main(args):
sshpass = None
if options.askpass:
sshpass = getpass.getpass(prompt="SSH password: ")
pattern = '*'
if options.host:
pattern += ';'.join(options.host)
if options.output_dest:
if options.output_dest[0] != '/':
@ -81,7 +78,7 @@ def main(args):
remote_pass=sshpass,
host_list=options.host_list,
forks=options.forks,
pattern=pattern,
pattern=options.pattern,
verbose=True,
)