1
0
Fork 0
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:
M 2022-07-01 21:24:13 +03:00 committed by GitHub
parent f2818df92e
commit 59682bbe12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"