mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-12-27 10:36:09 -07:00
main: put ssh option in quotes
This commit is contained in:
parent
e959e707d3
commit
490a9e7da1
2
main.js
2
main.js
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user