diff --git a/main.js b/main.js index cbcd753..0467916 100644 --- a/main.js +++ b/main.js @@ -16,7 +16,7 @@ async function main() { let cmd = ["ansible-playbook", playbook] if (options) { - cmd.push(options.replace("\n", " ")) + cmd.push(options.replace(/\n/g, " ")) } if (directory) {