Ansible become_method doesn't inherit the settings from REX settings
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 ]
#3 Updated by Nagoor Shaik almost 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|cebfe4d1ab160c229b52ca92faaf1db55381d938.