Update main.js

This commit is contained in:
Dawid Dziurla 2021-08-01 17:03:01 +02:00 committed by GitHub
parent 126c42dd51
commit 747001b7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ async function main() {
const knownHosts = core.getInput("known_hosts") const knownHosts = core.getInput("known_hosts")
const options = core.getInput("options") const options = core.getInput("options")
const sudo = core.getInput("sudo") const sudo = core.getInput("sudo")
const no_color = core.getInput("no_color") const noColor = core.getInput("no_color")
let cmd = ["ansible-playbook", playbook] let cmd = ["ansible-playbook", playbook]
@ -80,7 +80,7 @@ async function main() {
cmd.unshift("sudo", "-E", "env", `PATH=${process.env.PATH}`) cmd.unshift("sudo", "-E", "env", `PATH=${process.env.PATH}`)
} }
if (no_color) { if (noColor) {
process.env.ANSIBLE_NOCOLOR = "True" process.env.ANSIBLE_NOCOLOR = "True"
} else { } else {
process.env.ANSIBLE_FORCE_COLOR = "True" process.env.ANSIBLE_FORCE_COLOR = "True"