main: put ssh option in quotes

This commit is contained in:
Dawid Dziurla 2021-07-26 20:35:00 +02:00 committed by GitHub
parent e959e707d3
commit 490a9e7da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ async function main() {
const knownHostsFile = ".ansible_known_hosts"
fs.writeFileSync(knownHostsFile, knownHosts, { mode: 0600 })
core.saveState("knownHostsFile", knownHostsFile)
cmd.push("--ssh-common-args", `-o UserKnownHostsFile=${knownHostsFile}`)
cmd.push("--ssh-common-args", `'-o UserKnownHostsFile=${knownHostsFile}'`)
process.env.ANSIBLE_HOST_KEY_CHECKING = "True"
} else {
process.env.ANSIBLE_HOST_KEY_CHECKING = "False"