mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Merge branch 'sudo_on_if_needed' of https://github.com/apollo13/ansible into apollo13-sudo_on_if_needed
This commit is contained in:
commit
ba82e57445
4 changed files with 73 additions and 1 deletions
|
@ -699,6 +699,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