mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-09-03 15:25:46 -06:00
Separate command from arguments to exec
This commit is contained in:
parent
98591e5513
commit
acb5e94696
4
main.js
4
main.js
@ -16,7 +16,7 @@ async function main() {
|
||||
const options = core.getInput("options")
|
||||
const sudo = core.getInput("sudo")
|
||||
|
||||
let args = ["ansible-playbook", playbook]
|
||||
let args = [playbook]
|
||||
|
||||
if (options) {
|
||||
args.push(options.replace(/\n/g, " "))
|
||||
@ -91,7 +91,7 @@ async function main() {
|
||||
}
|
||||
}
|
||||
|
||||
await exec.exec(args.join(' '), execOptions)
|
||||
await exec.exec("ansible-playbook", args, execOptions)
|
||||
} catch (error) {
|
||||
core.setFailed(error.message)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user