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:
parent
01e5da6d0b
commit
4ba366c2d1
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue