Project

General

Profile

Actions

Bug #37136

closed

SSH User is ignored in advanced field of job invocation

Added by Ottavia Balducci 3 months ago. Updated 2 months ago.

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

Description

How reproducible:
Always

Steps to reproduce:

  1. Schedule Job
  2. Ansible Commands + Run Command (e.g. whoami)
  3. Under SSH User, set a user that is different from the global one or the one set in the parameter remote_execution_ssh_user
  4. Run the job

Result:
Ansible still tries to connect using the host parameter or the global setting and completely ignores the setting in the advanced field of the job.

You can check this for example by looking at /var/log/secure on the target host.

Expected result:
I expect the advanced field in the job invocation to have the highest priority. It should override the remote_execution_effective_user host parameter and the corresponding global settings if they are present.

Additional Info:
I am aware of Issue n. 36448. It looks possibly related, but I cannot reproduce it (the effective user is NOT ignored for me, only the SSH user).


Related issues 1 (0 open1 closed)

Has duplicate Ansible - Bug #36448: Ansible Command ignores advance fieldDuplicateActions
Actions #1

Updated by The Foreman Bot 3 months ago

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

Updated by The Foreman Bot 2 months ago

  • Fixed in Releases foreman_ansible-13.0.3 added
Actions #3

Updated by Ottavia Balducci 2 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Nofar Alfassi 19 days ago

  • Has duplicate Bug #36448: Ansible Command ignores advance field added
Actions

Also available in: Atom PDF