mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-04-20 06:43:34 +00:00
Update main.js
This commit is contained in:
parent
3c5278f421
commit
c4e9ae1206
1 changed files with 5 additions and 5 deletions
10
main.js
10
main.js
|
@ -24,6 +24,11 @@ async function main() {
|
|||
cmd.push(options.replace(/\n/g, " "))
|
||||
}
|
||||
|
||||
if(limit) {
|
||||
cmd.push("--limit")
|
||||
cmd.push(limit)
|
||||
}
|
||||
|
||||
if (directory) {
|
||||
process.chdir(directory)
|
||||
core.saveState("directory", directory)
|
||||
|
@ -51,11 +56,6 @@ async function main() {
|
|||
cmd.push(keyFile)
|
||||
}
|
||||
|
||||
if(limit) {
|
||||
cmd.push("--limit");
|
||||
cmd.push(limit);
|
||||
}
|
||||
|
||||
if (inventory) {
|
||||
const inventoryFile = ".ansible_inventory"
|
||||
fs.writeFileSync(inventoryFile, inventory, { mode: 0600 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue