mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-12-09 14:20:42 -07:00
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:
4
post.js
4
post.js
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user