mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-04-11 18:37:07 +00:00
fixed local inventory name
This commit is contained in:
parent
a4a03e574f
commit
ae4fda9675
2 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue