From f51a94457942ac1dee353d51872c521b27ecf7e6 Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Sat, 5 Oct 2024 23:37:27 +0200 Subject: [PATCH] fix known_hosts cli-argument quotes (fix #69) --- CHANGELOG.md | 1 + requirements.txt | 2 +- src/ansibleguy-webui/aw/execute/play_util.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6728438..9ed63c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Cleanup job-stati on startup * Fix Log-view expand-on-waiting behavior +* Fix known_hosts cli-argument ---- diff --git a/requirements.txt b/requirements.txt index c6e4918..a599994 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,7 +23,7 @@ crontab # ansible ansible-core # ansible-runner -ansibleguy-runner==2.4.0.post4 +ansibleguy-runner==2.4.0.post5 # config PyYAML diff --git a/src/ansibleguy-webui/aw/execute/play_util.py b/src/ansibleguy-webui/aw/execute/play_util.py index 60ed0b4..125e3d8 100644 --- a/src/ansibleguy-webui/aw/execute/play_util.py +++ b/src/ansibleguy-webui/aw/execute/play_util.py @@ -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: