diff options
author | Jordan Borean <jborean93@gmail.com> | 2019-09-19 08:41:02 +1000 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2019-09-18 19:03:20 -0700 |
commit | 741b49a2477f52de2711d7c109023a2452cb1673 (patch) | |
tree | 5d8ec988c9856af704abf65118472ba28c9cdc1b /lib | |
parent | 9bbaa0d6880ea26911d044e9ac47d03f6ebff6f6 (diff) | |
download | ansible-741b49a2477f52de2711d7c109023a2452cb1673.tar.gz |
psexec - Fix kerb and interactive support (#62556)
(cherry picked from commit 064e443ea597359f3abb087aae6ee1ae4836f265)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/modules/commands/psexec.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ansible/modules/commands/psexec.py b/lib/ansible/modules/commands/psexec.py index 150119e675..5751a64235 100644 --- a/lib/ansible/modules/commands/psexec.py +++ b/lib/ansible/modules/commands/psexec.py @@ -443,7 +443,7 @@ def main(): process_timeout = module.params['process_timeout'] stdin = module.params['stdin'] - if connection_username is None or connection_password is None and \ + if (connection_username is None or connection_password is None) and \ not HAS_KERBEROS: module.fail_json(msg=missing_required_lib("gssapi"), execption=KERBEROS_IMP_ERR) @@ -476,7 +476,8 @@ def main(): b_stdin = to_bytes(stdin, encoding='utf-8') if stdin else None run_args = dict( executable=executable, arguments=arguments, asynchronous=asynchronous, - load_profile=load_profile, interactive_session=interactive_session, + load_profile=load_profile, interactive=interactive, + interactive_session=interactive_session, run_elevated=elevated, run_limited=limited, username=process_username, password=process_password, use_system_account=use_system, working_dir=working_directory, |