mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-09-05 08:25:46 -06:00
Move base command back to cmd variable
This commit is contained in:
parent
d8a8e9121d
commit
bf8069946f
4
main.js
4
main.js
@ -16,7 +16,7 @@ async function main() {
|
|||||||
const options = core.getInput("options")
|
const options = core.getInput("options")
|
||||||
const sudo = core.getInput("sudo")
|
const sudo = core.getInput("sudo")
|
||||||
|
|
||||||
let cmd = [playbook]
|
let cmd = ["ansible-playbook", playbook]
|
||||||
|
|
||||||
if (options) {
|
if (options) {
|
||||||
cmd.push(options.replace(/\n/g, " "))
|
cmd.push(options.replace(/\n/g, " "))
|
||||||
@ -92,7 +92,7 @@ async function main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await exec.exec("ansible-playbook", cmd, execOptions)
|
await exec.exec(cmd.join(' '), null, execOptions)
|
||||||
core.setOutput('output', output)
|
core.setOutput('output', output)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message)
|
core.setFailed(error.message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user