Project

General

Profile

Bug #26850

Ansible become_method doesn't inherit the settings from REX settings

Added by Nagoor Shaik over 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
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 ]

Associated revisions

Revision cebfe4d1 (diff)
Added by Nagoor Shaik about 1 year ago

Fixes #26850 - set ansible_become_method per REX effective method (#271)

History

#1 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/271 added

#2 Updated by Marek Hulán about 1 year ago

  • Fixed in Releases foreman_ansible 3.0.7 added

#3 Updated by Nagoor Shaik about 1 year ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Nagoor Shaik about 1 year ago

  • Bugzilla link set to 1728612

#5 Updated by Marek Hulán 12 months ago

  • Fixed in Releases foreman-ansible 3.0.8 added
  • Fixed in Releases deleted (foreman_ansible 3.0.7)

Also available in: Atom PDF