mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Ported over #7158 to support SELinux context switches.
This commit is contained in:
parent
8548690ca3
commit
d9f873495e
4 changed files with 28 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue