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