When the play context contains 'become' for ansible privilege
escalation, apply the configured become method (sudo) to the command
used to attach to a container. This allows for non-root users to use the
connection plugin to connect to containers.
Closes-Bug: 1645732
Change-Id: I485bd0aa850f39201654c808f0c61d26113f6390