Skip to content

Commit

Permalink
fixed local inventory name
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkinglight committed Jul 5, 2022
1 parent a4a03e5 commit ae4fda9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]

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

0 comments on commit ae4fda9

Please sign in to comment.