Commit f048aca5 by Brian Coca

runas placeholder

parent 81ee2412
......@@ -379,6 +379,14 @@ class PlayContext(Base):
# No user as it uses it's own exec_attr to figure it out
becomecmd = '%s %s "%s"' % (exe, flags, success_cmd)
elif self.become_method == 'runas':
raise AnsibleError("'runas' is not yet implemented")
#TODO: figure out prompt
# this is not for use with winrm plugin but if they ever get ssh native on windoez
exe = self.become_exe or 'runas'
flags = self.become_flags or ''
becomecmd = '%s %s /user:%s "%s"' % (exe, flags, self.become_user, success_cmd)
else:
raise AnsibleError("Privilege escalation method not found: %s" % self.become_method)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment