mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-04-22 07:43:35 +00:00
Move base command back to cmd variable
This commit is contained in:
parent
d8a8e9121d
commit
bf8069946f
1 changed files with 2 additions and 2 deletions
4
main.js
4
main.js
|
@ -16,7 +16,7 @@ async function main() {
|
|||
const options = core.getInput("options")
|
||||
const sudo = core.getInput("sudo")
|
||||
|
||||
let cmd = [playbook]
|
||||
let cmd = ["ansible-playbook", playbook]
|
||||
|
||||
if (options) {
|
||||
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)
|
||||
} catch (error) {
|
||||
core.setFailed(error.message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue