mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 04:24:00 -07:00
Merge pull request #11975 from mutemule/become_doas
Add become support for OpenBSD doas
This commit is contained in:
commit
ee21ebaffc
9 changed files with 29 additions and 9 deletions
|
@ -23,7 +23,7 @@ become_user
|
|||
equivalent to adding 'sudo_user:' or 'su_user:' to a play or task, set to user with desired privileges
|
||||
|
||||
become_method
|
||||
at play or task level overrides the default method set in ansible.cfg, set to 'sudo'/'su'/'pbrun'/'pfexec'
|
||||
at play or task level overrides the default method set in ansible.cfg, set to 'sudo'/'su'/'pbrun'/'pfexec'/'doas'
|
||||
|
||||
|
||||
New ansible\_ variables
|
||||
|
@ -54,7 +54,7 @@ New command line options
|
|||
|
||||
--become-method=BECOME_METHOD
|
||||
privilege escalation method to use (default=sudo),
|
||||
valid choices: [ sudo | su | pbrun | pfexec ]
|
||||
valid choices: [ sudo | su | pbrun | pfexec | doas ]
|
||||
|
||||
--become-user=BECOME_USER
|
||||
run operations as this user (default=root)
|
||||
|
|
|
@ -651,7 +651,7 @@ The equivalent of adding sudo: or su: to a play or task, set to true/yes to acti
|
|||
become_method
|
||||
=============
|
||||
|
||||
Set the privilege escalation method. The default is ``sudo``, other options are ``su``, ``pbrun``, ``pfexec``::
|
||||
Set the privilege escalation method. The default is ``sudo``, other options are ``su``, ``pbrun``, ``pfexec``, ``doas``::
|
||||
|
||||
become_method=su
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue