From 59682bbe12f790a5761ff461949976e4ad87e26a Mon Sep 17 00:00:00 2001 From: M Date: Fri, 1 Jul 2022 21:24:13 +0300 Subject: [PATCH] Update main.js --- main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.js b/main.js index 147f323..4baf8f1 100644 --- a/main.js +++ b/main.js @@ -16,6 +16,7 @@ async function main() { const options = core.getInput("options") const sudo = core.getInput("sudo") const noColor = core.getInput("no_color") + const limit = core.getInput("limit") let cmd = ["ansible-playbook", playbook] @@ -49,6 +50,11 @@ async function main() { cmd.push("--key-file") cmd.push(keyFile) } + + if(limit) { + cmd.push("--limit"); + cmd.push(limit); + } if (inventory) { const inventoryFile = ".ansible_inventory"