Introduce optional support for ansible.cfg (#88)

* Introduce optional support for ansible.cfg

* Add missing ansible.cfg local & remote tests

* Update Readme

* Fix broken local test

---------

Co-authored-by: thehedhly <thehedhly@users.noreply.github.com>
This commit is contained in:
H.Hedhly
2024-01-17 10:06:09 +01:00
committed by GitHub
parent 3c4a9420c1
commit 0689c791d8
6 changed files with 45 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ function rm(file) {
async function main() {
try {
const directory = core.getState("directory")
const ansibleConfigurationFile = core.getState("ansibleConfigurationFile")
const keyFile = core.getState("keyFile")
const inventoryFile = core.getState("inventoryFile")
const vaultPasswordFile = core.getState("vaultPasswordFile")
@@ -18,6 +19,9 @@ async function main() {
if (directory)
process.chdir(directory)
if (ansibleConfigurationFile)
rm(ansibleConfigurationFile)
if (keyFile)
rm(keyFile)