Skip to content

Commit

Permalink
fix known_hosts cli-argument quotes (fix #69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Oct 5, 2024
1 parent 9b2ed34 commit f51a944
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* Cleanup job-stati on startup
* Fix Log-view expand-on-waiting behavior
* Fix known_hosts cli-argument

----

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ crontab
# ansible
ansible-core
# ansible-runner
ansibleguy-runner==2.4.0.post4
ansibleguy-runner==2.4.0.post5

# config
PyYAML
Expand Down
2 changes: 1 addition & 1 deletion src/ansibleguy-webui/aw/execute/play_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _commandline_arguments(job: Job, execution: JobExecution, creds: BaseJobCred
' '.join(cmd_arguments).find('ansible_ssh_extra_args') == -1:
if Path(config['path_ssh_known_hosts']).is_file():
cmd_arguments.append(
f"-e \"ansible_ssh_extra_args='-o UserKnownHostsFile={config['path_ssh_known_hosts']}'\""
f"-e 'ansible_ssh_extra_args=\"-o UserKnownHostsFile={config['path_ssh_known_hosts']}\"'"
)

else:
Expand Down

0 comments on commit f51a944

Please sign in to comment.