mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-09-03 15:25:46 -06:00
fixed local inventory name
This commit is contained in:
parent
a4a03e574f
commit
ae4fda9675
@ -19,7 +19,7 @@ inputs:
|
||||
inventory:
|
||||
description: Custom content to write into hosts
|
||||
required: false
|
||||
localinventory:
|
||||
local_inventory:
|
||||
description: Inventory file from repo
|
||||
required: false
|
||||
vault_password:
|
||||
|
5
main.js
5
main.js
@ -17,6 +17,7 @@ async function main() {
|
||||
const sudo = core.getInput("sudo")
|
||||
const noColor = core.getInput("no_color")
|
||||
const limit = core.getInput("limit")
|
||||
const local_inventory = core.getInput("local_inventory")
|
||||
|
||||
let cmd = ["ansible-playbook", playbook]
|
||||
|
||||
@ -64,9 +65,9 @@ async function main() {
|
||||
cmd.push(inventoryFile)
|
||||
}
|
||||
|
||||
if(localinventory) {
|
||||
if(local_inventory) {
|
||||
cmd.push("--inventory-file")
|
||||
cmd.push(localinventory)
|
||||
cmd.push(local_inventory)
|
||||
}
|
||||
|
||||
if (vaultPassword) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user