mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-04-12 02:47:06 +00:00
Update main.js
This commit is contained in:
parent
f2818df92e
commit
59682bbe12
1 changed files with 6 additions and 0 deletions
6
main.js
6
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue