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"