diff --git a/action.yml b/action.yml index 9b15026..53fdc2c 100644 --- a/action.yml +++ b/action.yml @@ -34,12 +34,15 @@ inputs: sudo: description: Set to "true" if root is required for running your playbook required: false + default: "false" no_color: description: Set to "true" if the Ansible output should not include colors (defaults to "false") required: false + default: "false" check_mode: description: Set to "true" to enable check (dry-run) mode required: false + default: "false" outputs: output: description: The captured output of both stdout and stderr from the Ansible Playbook run diff --git a/main.js b/main.js index ca862fd..0ef3b5e 100644 --- a/main.js +++ b/main.js @@ -15,9 +15,9 @@ async function main() { const vaultPassword = core.getInput("vault_password") const knownHosts = core.getInput("known_hosts") const options = core.getInput("options") - const sudo = core.getInput("sudo") - const noColor = core.getInput("no_color") - const checkMode = core.getInput("check_mode") + const sudo = core.getBooleanInput("sudo") + const noColor = core.getBooleanInput("no_color") + const checkMode = core.getBooleanInput("check_mode") const fileMode = 0600 let cmd = ["ansible-playbook", playbook]