mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-22 15:32:18 +00:00
main: fix
This commit is contained in:
parent
490a9e7da1
commit
fbcc2c2bae
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -69,7 +69,7 @@ async function main() {
|
||||||
const knownHostsFile = ".ansible_known_hosts"
|
const knownHostsFile = ".ansible_known_hosts"
|
||||||
fs.writeFileSync(knownHostsFile, knownHosts, { mode: 0600 })
|
fs.writeFileSync(knownHostsFile, knownHosts, { mode: 0600 })
|
||||||
core.saveState("knownHostsFile", knownHostsFile)
|
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"
|
process.env.ANSIBLE_HOST_KEY_CHECKING = "True"
|
||||||
} else {
|
} else {
|
||||||
process.env.ANSIBLE_HOST_KEY_CHECKING = "False"
|
process.env.ANSIBLE_HOST_KEY_CHECKING = "False"
|
||||||
|
|
Loading…
Reference in a new issue