Ported over #7158 to support SELinux context switches.

This commit is contained in:
Florian Apolloner 2015-09-17 14:59:22 +02:00
commit d9f873495e
4 changed files with 28 additions and 1 deletions

View file

@ -678,6 +678,18 @@ Ask for privilege escalation password, the default is False::
become_ask_pass=True
.. _become_allow_same_user:
become_allow_same_user
======================
Most of the time, using *sudo* to run a command as the same user who is running
*sudo* itself is unnecessary overhead, so Ansible does not allow it. However,
depending on the *sudo* configuration, it may be necessary to run a command as
the same user through *sudo*, such as to switch SELinux contexts. For this
reason, you can set ``become_allow_same_user`` to ``True`` and disable this
optimization.
.. _paramiko_settings:
Paramiko Specific Settings