Project

General

Profile

Actions

Bug #26850

closed

Ansible become_method doesn't inherit the settings from REX settings

Added by Nagoor Shaik almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
trivial
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Ansible become_method doesn't inherit the settings from REX settings. We do support multiple privilege escalation methods (sudo, dzdo and su) with REX settings, however it always defaults to sudo when running Ansible Jobs.

Per ansible command line help, privilege escalation method if none provided it defaults to sudo


ansible --help | grep -A3 become-method
    --become-method=BECOME_METHOD
                        privilege escalation method to use (default=sudo),
                        valid choices: [ sudo | su | pbrun | pfexec | doas |
                        dzdo | ksu | runas | pmrun | enable | machinectl ]

Actions

Also available in: Atom PDF