Merge pull request #12896 from bcoca/ssh_current_user_config

don't set user to current user
This commit is contained in:
Brian Coca
2015-10-26 13:26:43 -04:00
3 changed files with 3 additions and 8 deletions

View File

@@ -23,7 +23,6 @@ import fcntl
import os
import pipes
import pty
import pwd
import select
import shlex
import subprocess
@@ -188,7 +187,7 @@ class Connection(ConnectionBase):
)
user = self._play_context.remote_user
if user and user != pwd.getpwuid(os.geteuid())[0]:
if user:
self._add_args(
"ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set",
("-o", "User={0}".format(self._play_context.remote_user))