Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #37136 - SSH User is ignored in advanced field of job invocation #691

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/services/foreman_ansible/inventory_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def ansible_extra_options(host)

def remote_execution_options(host)
params = {
'ansible_user' => host_setting(host, 'remote_execution_ssh_user'),
'ansible_user' => @template_invocation.job_invocation&.ssh_user || host_setting(host, 'remote_execution_ssh_user'),
adamruzicka marked this conversation as resolved.
Show resolved Hide resolved
'ansible_become_method' => host_setting(host, 'remote_execution_effective_user_method'),
'ansible_ssh_private_key_file' => ansible_ssh_private_key(host),
'ansible_port' => host_setting(host, 'remote_execution_ssh_port'),
Expand Down