From bf8069946f8046c1f97e86d007633a15ad6a2e4a Mon Sep 17 00:00:00 2001 From: Brooks Swinnerton Date: Sat, 31 Jul 2021 08:45:46 -0400 Subject: [PATCH] Move base command back to cmd variable --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 8779eb6..46b50eb 100644 --- a/main.js +++ b/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)