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:
parent
126c42dd51
commit
747001b7fc
1 changed files with 2 additions and 2 deletions
4
main.js
4
main.js
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue