mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Require that ansible managed hosts be in the list of hosts to manage to avoid
option overload.
This commit is contained in:
@@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user