connection/docker: add privilege escalation support (#55816)

As described in #53385 (and #31759), the docker connection driver did
not support privilege escalation. This commit is a shameless
cut-and-paste of the privilege escalation support from the `local`
connection plugin into the `docker` plugin.

Closes: #53385
This commit is contained in:
Lars Kellogg-Stedman
2019-05-09 15:02:54 -04:00
committed by ansibot
parent 87d42ca11c
commit 61e476b908
2 changed files with 53 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
---
bugfixes:
- Fix privilege escalation support for the docker connection plugin when
credentials needs to be supplied (e.g. sudo with password).