Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkinglight committed Jul 1, 2022
1 parent f2818df commit 59682bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 59682bb

Please sign in to comment.