diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py index bf1a2f955d5..0f2f5ea1b49 100644 --- a/lib/ansible/module_utils/junos.py +++ b/lib/ansible/module_utils/junos.py @@ -95,7 +95,7 @@ class Cli(object): try: self.shell = Shell() - self.shell.open(host, port=port, username=username, password=password, key_filename=key_filename) + self.shell.open(host, port=port, username=username, password=password, key_filename=key_filename, allow_agent=True) except ShellError: e = get_exception() msg = 'failed to connect to %s:%s - %s' % (host, port, str(e))