mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
8e0c8ffe7b
commit
03c33053aa
3 changed files with 7 additions and 5 deletions
|
@ -15,6 +15,8 @@ privilege escalation tools, which you probably already use or have configured, l
|
|||
and execute tasks, create resources with the 2nd user's permissions. As of 1.9 `become` supersedes the old sudo/su, while still being backwards compatible.
|
||||
This new system also makes it easier to add other privilege escalation tools like `pbrun` (Powerbroker), `pfexec` and others.
|
||||
|
||||
.. note:: Setting any var or directive makes no implications on the values of the other related directives, i.e. setting become_user does not set become.
|
||||
|
||||
|
||||
Directives
|
||||
-----------
|
||||
|
@ -24,7 +26,7 @@ become
|
|||
set to 'true'/'yes' to activate privilege escalation.
|
||||
|
||||
become_user
|
||||
set to user with desired privileges, the user you 'become', NOT the user you login as.
|
||||
set to user with desired privileges, the user you 'become', NOT the user you login as. Does NOT imply `become: yes`, to allow it to be set at host level.
|
||||
|
||||
become_method
|
||||
at play or task level overrides the default method set in ansible.cfg, set to 'sudo'/'su'/'pbrun'/'pfexec'/'doas'
|
||||
|
@ -41,7 +43,7 @@ ansible_become_method
|
|||
allows to set privilege escalation method
|
||||
|
||||
ansible_become_user
|
||||
allows to set the user you become through privilege escalation
|
||||
allows to set the user you become through privilege escalation, does not imply `ansible_become: True`
|
||||
|
||||
ansible_become_pass
|
||||
allows you to set the privilege escalation password
|
||||
|
@ -61,7 +63,7 @@ New command line options
|
|||
valid choices: [ sudo | su | pbrun | pfexec | doas ]
|
||||
|
||||
--become-user=BECOME_USER
|
||||
run operations as this user (default=root)
|
||||
run operations as this user (default=root), does not imply --become/-b
|
||||
|
||||
|
||||
For those from Pre 1.9 , sudo and su still work!
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 7162623e8677953bbbc499940f5f7dd19dba680d
|
||||
Subproject commit 8d126bd877444c9557b1671521516447cc557d3f
|
|
@ -1 +1 @@
|
|||
Subproject commit f5e798f13ca13938db76cc3ede85f0a05b9fc578
|
||||
Subproject commit f6c5ed987f7f8ec20ad1d417b4a39ba6bbc5d7bc
|
Loading…
Reference in a new issue