mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-12-09 14:20:42 -07:00
Add check mode and fixes boolean inputs (#111)
* Add check mode option * Fixes boolean inputs Boolean inputs weren't working properly before. Passing any value would result in `true`, which is unexpected and not according to inputs description. This change retrieves booleans with `getBooleanInput()` and sets a default to `false`. Relevant GitHub discussion and comment: https://github.com/actions/toolkit/issues/361#issuecomment-829507270 * Update action.yml * Update test.yml * Update test.yml --------- Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
This commit is contained in:
committed by
GitHub
parent
245b181622
commit
a4d1256d3c
@@ -34,9 +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
|
||||
|
||||
Reference in New Issue
Block a user