1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2025-04-21 23:33:35 +00:00

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