Actions
Bug #26850
closedAnsible become_method doesn't inherit the settings from REX settings
Difficulty:
trivial
Triaged:
No
Bugzilla link:
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